+ nonunicodebrowser message
[lhc/web/wiklou.git] / languages / Language.php
1 <?php
2 if( defined( 'MEDIAWIKI' ) ) {
3
4 #
5 # In general you should not make customizations in these language files
6 # directly, but should use the MediaWiki: special namespace to customize
7 # user interface messages through the wiki.
8 # See http://meta.wikipedia.org/wiki/MediaWiki_namespace
9 #
10 # NOTE TO TRANSLATORS: Do not copy this whole file when making translations!
11 # A lot of common constants and a base class with inheritable methods are
12 # defined here, which should not be redefined. See the other LanguageXx.php
13 # files for examples.
14 #
15
16 #--------------------------------------------------------------------------
17 # Language-specific text
18 #--------------------------------------------------------------------------
19
20 # The names of the namespaces can be set here, but the numbers
21 # are magical, so don't change or move them! The Namespace class
22 # encapsulates some of the magic-ness.
23 #
24
25 if($wgMetaNamespace === FALSE)
26 $wgMetaNamespace = str_replace( ' ', '_', $wgSitename );
27
28 /* private */ $wgNamespaceNamesEn = array(
29 NS_MEDIA => 'Media',
30 NS_SPECIAL => 'Special',
31 NS_MAIN => '',
32 NS_TALK => 'Talk',
33 NS_USER => 'User',
34 NS_USER_TALK => 'User_talk',
35 NS_PROJECT => $wgMetaNamespace,
36 NS_PROJECT_TALK => $wgMetaNamespace . '_talk',
37 NS_IMAGE => 'Image',
38 NS_IMAGE_TALK => 'Image_talk',
39 NS_MEDIAWIKI => 'MediaWiki',
40 NS_MEDIAWIKI_TALK => 'MediaWiki_talk',
41 NS_TEMPLATE => 'Template',
42 NS_TEMPLATE_TALK => 'Template_talk',
43 NS_HELP => 'Help',
44 NS_HELP_TALK => 'Help_talk',
45 NS_CATEGORY => 'Category',
46 NS_CATEGORY_TALK => 'Category_talk'
47 );
48
49 if(isset($wgExtraNamespaces)) {
50 $wgNamespaceNamesEn=$wgNamespaceNamesEn+$wgExtraNamespaces;
51 }
52
53 /* private */ $wgDefaultUserOptionsEn = array(
54 'quickbar' => 1, 'underline' => 1, 'hover' => 1,
55 'cols' => 80, 'rows' => 25, 'searchlimit' => 20,
56 'contextlines' => 5, 'contextchars' => 50,
57 'skin' => $wgDefaultSkin, 'math' => 1, 'rcdays' => 7, 'rclimit' => 50,
58 'highlightbroken' => 1, 'stubthreshold' => 0,
59 'previewontop' => 1, 'editsection'=>1,'editsectiononrightclick'=>0, 'showtoc'=>1,
60 'showtoolbar' =>1,
61 'date' => 0, 'imagesize' => 2
62 );
63
64 /* private */ $wgQuickbarSettingsEn = array(
65 'None', 'Fixed left', 'Fixed right', 'Floating left'
66 );
67
68 /* private */ $wgSkinNamesEn = array(
69 'standard' => 'Classic',
70 'nostalgia' => 'Nostalgia',
71 'cologneblue' => 'Cologne Blue',
72 'davinci' => 'DaVinci',
73 'mono' => 'Mono',
74 'monobook' => 'MonoBook',
75 'myskin' => 'MySkin',
76 'chick' => 'Chick'
77 );
78
79 define( 'MW_MATH_PNG', 0 );
80 define( 'MW_MATH_SIMPLE', 1 );
81 define( 'MW_MATH_HTML', 2 );
82 define( 'MW_MATH_SOURCE', 3 );
83 define( 'MW_MATH_MODERN', 4 );
84 define( 'MW_MATH_MATHML', 5 );
85
86 # Validation types
87 $wgValidationTypesEn = array (
88 '0' => "Style|Awful|Awesome|5",
89 '1' => "Legal|Illegal|Legal|5",
90 '2' => "Completeness|Stub|Extensive|5",
91 '3' => "Facts|Wild guesses|Solid as a rock|5",
92 '4' => "Suitable for 1.0 (paper)|No|Yes|2",
93 '5' => "Suitable for 1.0 (CD)|No|Yes|2"
94 );
95
96 /* private */ $wgMathNamesEn = array(
97 MW_MATH_PNG => 'mw_math_png',
98 MW_MATH_SIMPLE => 'mw_math_simple',
99 MW_MATH_HTML => 'mw_math_html',
100 MW_MATH_SOURCE => 'mw_math_source',
101 MW_MATH_MODERN => 'mw_math_modern',
102 MW_MATH_MATHML => 'mw_math_mathml'
103 );
104
105 # Whether to use user or default setting in Language::date()
106 define( 'MW_DATE_DEFAULT', false );
107 define( 'MW_DATE_USER_FORMAT', true );
108
109 /* private */ $wgDateFormatsEn = array(
110 'No preference',
111 'January 15, 2001',
112 '15 January 2001',
113 '2001 January 15',
114 '2001-01-15'
115 );
116
117 /* private */ $wgUserTogglesEn = array(
118 'hover',
119 'underline',
120 'highlightbroken',
121 'justify',
122 'hideminor',
123 'usenewrc',
124 'numberheadings',
125 'showtoolbar',
126 'editondblclick',
127 'editsection',
128 'editsectiononrightclick',
129 'showtoc',
130 'rememberpassword',
131 'editwidth',
132 'watchdefault',
133 'minordefault',
134 'previewontop',
135 'previewonfirst',
136 'nocache',
137 );
138
139 /* private */ $wgBookstoreListEn = array(
140 'AddALL' => 'http://www.addall.com/New/Partner.cgi?query=$1&type=ISBN',
141 'PriceSCAN' => 'http://www.pricescan.com/books/bookDetail.asp?isbn=$1',
142 'Barnes & Noble' => 'http://shop.barnesandnoble.com/bookSearch/isbnInquiry.asp?isbn=$1',
143 'Amazon.com' => 'http://www.amazon.com/exec/obidos/ISBN=$1'
144 );
145
146 # Read language names
147 global $wgLanguageNames;
148 require_once( 'Names.php' );
149
150 $wgLanguageNamesEn =& $wgLanguageNames;
151
152
153 /* private */ $wgWeekdayNamesEn = array(
154 'sunday', 'monday', 'tuesday', 'wednesday', 'thursday',
155 'friday', 'saturday'
156 );
157
158
159 /* private */ $wgMonthNamesEn = array(
160 'january', 'february', 'march', 'april', 'may_long', 'june',
161 'july', 'august', 'september', 'october', 'november',
162 'december'
163 );
164 /* private */ $wgMonthNamesGenEn = array(
165 'january-gen', 'february-gen', 'march-gen', 'april-gen', 'may-gen', 'june-gen',
166 'july-gen', 'august-gen', 'september-gen', 'october-gen', 'november-gen',
167 'december-gen'
168 );
169
170 /* private */ $wgMonthAbbreviationsEn = array(
171 'jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug',
172 'sep', 'oct', 'nov', 'dec'
173 );
174
175 # Note to translators:
176 # Please include the English words as synonyms. This allows people
177 # from other wikis to contribute more easily.
178 #
179 /* private */ $wgMagicWordsEn = array(
180 # ID CASE SYNONYMS
181 MAG_REDIRECT => array( 0, '#redirect' ),
182 MAG_NOTOC => array( 0, '__NOTOC__' ),
183 MAG_FORCETOC => array( 0, '__FORCETOC__' ),
184 MAG_TOC => array( 0, '__TOC__' ),
185 MAG_NOEDITSECTION => array( 0, '__NOEDITSECTION__' ),
186 MAG_START => array( 0, '__START__' ),
187 MAG_CURRENTMONTH => array( 1, 'CURRENTMONTH' ),
188 MAG_CURRENTMONTHNAME => array( 1, 'CURRENTMONTHNAME' ),
189 MAG_CURRENTDAY => array( 1, 'CURRENTDAY' ),
190 MAG_CURRENTDAYNAME => array( 1, 'CURRENTDAYNAME' ),
191 MAG_CURRENTYEAR => array( 1, 'CURRENTYEAR' ),
192 MAG_CURRENTTIME => array( 1, 'CURRENTTIME' ),
193 MAG_NUMBEROFARTICLES => array( 1, 'NUMBEROFARTICLES' ),
194 MAG_CURRENTMONTHNAMEGEN => array( 1, 'CURRENTMONTHNAMEGEN' ),
195 MAG_PAGENAME => array( 1, 'PAGENAME' ),
196 MAG_PAGENAMEE => array( 1, 'PAGENAMEE' ),
197 MAG_NAMESPACE => array( 1, 'NAMESPACE' ),
198 MAG_MSG => array( 0, 'MSG:' ),
199 MAG_SUBST => array( 0, 'SUBST:' ),
200 MAG_MSGNW => array( 0, 'MSGNW:' ),
201 MAG_END => array( 0, '__END__' ),
202 MAG_IMG_THUMBNAIL => array( 1, 'thumbnail', 'thumb' ),
203 MAG_IMG_RIGHT => array( 1, 'right' ),
204 MAG_IMG_LEFT => array( 1, 'left' ),
205 MAG_IMG_NONE => array( 1, 'none' ),
206 MAG_IMG_WIDTH => array( 1, '$1px' ),
207 MAG_IMG_CENTER => array( 1, 'center', 'centre' ),
208 MAG_IMG_FRAMED => array( 1, 'framed', 'enframed', 'frame' ),
209 MAG_INT => array( 0, 'INT:' ),
210 MAG_SITENAME => array( 1, 'SITENAME' ),
211 MAG_NS => array( 0, 'NS:' ),
212 MAG_LOCALURL => array( 0, 'LOCALURL:' ),
213 MAG_LOCALURLE => array( 0, 'LOCALURLE:' ),
214 MAG_SERVER => array( 0, 'SERVER' ),
215 MAG_GRAMMAR => array( 0, 'GRAMMAR:' )
216 );
217
218 #-------------------------------------------------------------------
219 # Default messages
220 #-------------------------------------------------------------------
221 # Allowed characters in keys are: A-Z, a-z, 0-9, underscore (_) and
222 # hyphen (-). If you need more characters, you may be able to change
223 # the regex in MagicWord::initRegex
224
225 # required for copyrightwarning
226 global $wgRightsText;
227
228 /* private */ $wgAllMessagesEn = array(
229 'special_version_prefix' => '&nbsp;',
230 'special_version_postfix' => '&nbsp;',
231 # User preference toggles
232 'tog-hover' => 'Show hoverbox over wiki links',
233 'tog-underline' => 'Underline links',
234 'tog-highlightbroken' => 'Format broken links <a href="" class="new">like this</a> (alternative: like this<a href="" class="internal">?</a>).',
235 'tog-justify' => 'Justify paragraphs',
236 'tog-hideminor' => 'Hide minor edits in recent changes',
237 'tog-usenewrc' => 'Enhanced recent changes (not for all browsers)',
238 'tog-numberheadings' => 'Auto-number headings',
239 'tog-showtoolbar'=>'Show edit toolbar',
240 'tog-editondblclick' => 'Edit pages on double click (JavaScript)',
241 'tog-editsection'=>'Enable section editing via [edit] links',
242 'tog-editsectiononrightclick'=>'Enable section editing by right clicking<br /> on section titles (JavaScript)',
243 'tog-showtoc'=>'Show table of contents<br />(for pages with more than 3 headings)',
244 'tog-rememberpassword' => 'Remember password across sessions',
245 'tog-editwidth' => 'Edit box has full width',
246 'tog-watchdefault' => 'Add pages you edit to your watchlist',
247 'tog-minordefault' => 'Mark all edits minor by default',
248 'tog-previewontop' => 'Show preview before edit box and not after it',
249 'tog-previewonfirst' => 'Show preview on first edit',
250 'tog-nocache' => 'Disable page caching',
251
252 # dates
253 'sunday' => 'Sunday',
254 'monday' => 'Monday',
255 'tuesday' => 'Tuesday',
256 'wednesday' => 'Wednesday',
257 'thursday' => 'Thursday',
258 'friday' => 'Friday',
259 'saturday' => 'Saturday',
260 'january' => 'January',
261 'february' => 'February',
262 'march' => 'March',
263 'april' => 'April',
264 'may_long' => 'May',
265 'june' => 'June',
266 'july' => 'July',
267 'august' => 'August',
268 'september' => 'September',
269 'october' => 'October',
270 'november' => 'November',
271 'december' => 'December',
272 'jan' => 'Jan',
273 'feb' => 'Feb',
274 'mar' => 'Mar',
275 'apr' => 'Apr',
276 'may' => 'May',
277 'jun' => 'Jun',
278 'jul' => 'Jul',
279 'aug' => 'Aug',
280 'sep' => 'Sep',
281 'oct' => 'Oct',
282 'nov' => 'Nov',
283 'dec' => 'Dec',
284 # Bits of text used by many pages:
285 #
286 'categories' => 'Categories',
287 'category' => 'category',
288 'category_header' => 'Articles in category "$1"',
289 'subcategories' => 'Subcategories',
290
291
292 'linktrail' => '/^([a-z]+)(.*)$/sD',
293 'mainpage' => 'Main Page',
294 'mainpagetext' => 'Wiki software successfully installed.',
295 "mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]
296 and the [http://meta.wikipedia.org/wiki/MediaWiki_User%27s_Guide User's Guide] for usage and configuration help.",
297
298 # NOTE: To turn off "Community portal" in the title links,
299 # set "portal" => "-"
300
301 'portal' => 'Community portal',
302 'portal-url' => '{{ns:4}}:Community Portal',
303 'about' => 'About',
304 "aboutsite" => "About {{SITENAME}}",
305 "aboutpage" => "{{ns:4}}:About",
306 'article' => 'Content page',
307 'help' => 'Help',
308 "helppage" => "{{ns:12}}:Contents",
309 "wikititlesuffix" => "{{SITENAME}}",
310 "bugreports" => "Bug reports",
311 "bugreportspage" => "{{ns:4}}:Bug_reports",
312 'sitesupport' => 'Donations',
313 'sitesupport-url' => '{{ns:4}}:Site support',
314 'faq' => 'FAQ',
315 "faqpage" => "{{ns:4}}:FAQ",
316 "edithelp" => "Editing help",
317 "newwindow" => "(opens in new window)",
318 "edithelppage" => "{{ns:12}}:Editing",
319 'cancel' => 'Cancel',
320 'qbfind' => 'Find',
321 'qbbrowse' => 'Browse',
322 'qbedit' => 'Edit',
323 'qbpageoptions' => 'This page',
324 'qbpageinfo' => 'Context',
325 'qbmyoptions' => 'My pages',
326 'qbspecialpages' => 'Special pages',
327 'moredotdotdot' => 'More...',
328 'mypage' => 'My page',
329 'mytalk' => 'My talk',
330 'anontalk' => 'Talk for this IP',
331 'navigation' => 'Navigation',
332
333 # NOTE: To turn off "Current Events" in the sidebar,
334 # set "currentevents" => "-"
335
336 'currentevents' => 'Current events',
337 'currentevents-url' => 'Current events',
338
339 # NOTE: To turn off "Disclaimers" in the title links,
340 # set "disclaimers" => "-"
341
342 'disclaimers' => 'Disclaimers',
343 "disclaimerpage" => "{{ns:4}}:General_disclaimer",
344 "errorpagetitle" => "Error",
345 "returnto" => "Return to $1.",
346 "tagline" => "From {{SITENAME}}",
347 'whatlinkshere' => 'Pages that link here',
348 'help' => 'Help',
349 'search' => 'Search',
350 'go' => 'Go',
351 "history" => 'Page history',
352 'history_short' => 'History',
353 'info_short' => 'Information',
354 'printableversion' => 'Printable version',
355 'edit' => 'Edit',
356 'editthispage' => 'Edit this page',
357 'delete' => 'Delete',
358 "deletethispage" => "Delete this page",
359 "undelete_short" => "Undelete $1 edits",
360 'protect' => 'Protect',
361 'protectthispage' => 'Protect this page',
362 'unprotect' => 'Unprotect',
363 'unprotectthispage' => 'Unprotect this page',
364 'newpage' => 'New page',
365 'talkpage' => 'Discuss this page',
366 'specialpage' => 'Special Page',
367 'personaltools' => 'Personal tools',
368 'postcomment' => 'Post a comment',
369 'addsection' => '+',
370 'articlepage' => 'View content page',
371 'subjectpage' => 'View subject', # For compatibility
372 'talk' => 'Discussion',
373 'toolbox' => 'Toolbox',
374 'userpage' => 'View user page',
375 'wikipediapage' => 'View project page',
376 'imagepage' => 'View image page',
377 'viewtalkpage' => 'View discussion',
378 'otherlanguages' => 'Other languages',
379 'redirectedfrom' => '(Redirected from $1)',
380 'lastmodified' => 'This page was last modified $1.',
381 'viewcount' => 'This page has been accessed $1 times.',
382 'copyright' => 'Content is available under $1.',
383 'poweredby' => "{{SITENAME}} is powered by [http://www.mediawiki.org/ MediaWiki], an open source wiki engine.",
384 'printsubtitle' => "(From {{SERVER}})",
385 'protectedpage' => 'Protected page',
386 'administrators' => "{{ns:4}}:Administrators",
387 'sysoptitle' => 'Sysop access required',
388 'sysoptext' => "The action you have requested can only be
389 performed by users with \"sysop\" status.
390 See $1.",
391 'developertitle' => 'Developer access required',
392 "developertext" => "The action you have requested can only be
393 performed by users with \"developer\" status.
394 See $1.",
395 'bureaucrattitle' => 'Bureaucrat access required',
396 "bureaucrattext" => "The action you have requested can only be
397 performed by sysops with \"bureaucrat\" status.",
398 'nbytes' => '$1 bytes',
399 'go' => 'Go',
400 'ok' => 'OK',
401 'sitetitle' => "{{SITENAME}}",
402 'pagetitle' => "$1 - {{SITENAME}}",
403 'sitesubtitle' => 'The Free Encyclopedia', # FIXME
404 'retrievedfrom' => "Retrieved from \"$1\"",
405 'newmessages' => "You have $1.",
406 'newmessageslink' => 'new messages',
407 'editsection'=>'edit',
408 'toc' => 'Table of contents',
409 'showtoc' => 'show',
410 'hidetoc' => 'hide',
411 'thisisdeleted' => "View or restore $1?",
412 'restorelink' => "$1 deleted edits",
413 'feedlinks' => 'Feed:',
414 'sitenotice' => '', # the equivalent to wgSiteNotice
415
416 # Short words for each namespace, by default used in the 'article' tab in monobook
417 'nstab-main' => 'Article',
418 'nstab-user' => 'User page',
419 'nstab-media' => 'Media',
420 'nstab-special' => 'Special',
421 'nstab-wp' => 'About',
422 'nstab-image' => 'Image',
423 'nstab-mediawiki' => 'Message',
424 'nstab-template' => 'Template',
425 'nstab-help' => 'Help',
426 'nstab-category' => 'Category',
427
428 # Main script and global functions
429 #
430 'nosuchaction' => 'No such action',
431 'nosuchactiontext' => 'The action specified by the URL is not
432 recognized by the wiki',
433 'nosuchspecialpage' => 'No such special page',
434 'nospecialpagetext' => 'You have requested a special page that is not
435 recognized by the wiki.',
436
437 # General errors
438 #
439 'error' => 'Error',
440 'databaseerror' => 'Database error',
441 'dberrortext' => "A database query syntax error has occurred.
442 This may indicate a bug in the software.
443 The last attempted database query was:
444 <blockquote><tt>$1</tt></blockquote>
445 from within function \"<tt>$2</tt>\".
446 MySQL returned error \"<tt>$3: $4</tt>\".",
447 'dberrortextcl' => "A database query syntax error has occurred.
448 The last attempted database query was:
449 \"$1\"
450 from within function \"$2\".
451 MySQL returned error \"$3: $4\".\n",
452 'noconnect' => 'Sorry! The wiki is experiencing some technical difficulties, and cannot contact the database server. <br />
453 $1',
454 'nodb' => "Could not select database $1",
455 'cachederror' => 'The following is a cached copy of the requested page, and may not be up to date.',
456 'readonly' => 'Database locked',
457 'enterlockreason' => 'Enter a reason for the lock, including an estimate
458 of when the lock will be released',
459 'readonlytext' => "The database is currently locked to new
460 entries and other modifications, probably for routine database maintenance,
461 after which it will be back to normal.
462 The administrator who locked it offered this explanation:
463 <p>$1",
464 'missingarticle' => "The database did not find the text of a page
465 that it should have found, named \"$1\".
466
467 <p>This is usually caused by following an outdated diff or history link to a
468 page that has been deleted.
469
470 <p>If this is not the case, you may have found a bug in the software.
471 Please report this to an administrator, making note of the URL.",
472 'internalerror' => 'Internal error',
473 'filecopyerror' => "Could not copy file \"$1\" to \"$2\".",
474 'filerenameerror' => "Could not rename file \"$1\" to \"$2\".",
475 'filedeleteerror' => "Could not delete file \"$1\".",
476 'filenotfound' => "Could not find file \"$1\".",
477 'unexpected' => "Unexpected value: \"$1\"=\"$2\".",
478 'formerror' => 'Error: could not submit form',
479 'badarticleerror' => 'This action cannot be performed on this page.',
480 'cannotdelete' => 'Could not delete the page or image specified. (It may have already been deleted by someone else.)',
481 'badtitle' => 'Bad title',
482 'badtitletext' => "The requested page title was invalid, empty, or
483 an incorrectly linked inter-language or inter-wiki title.",
484 'perfdisabled' => 'Sorry! This feature has been temporarily disabled
485 because it slows the database down to the point that no one can use
486 the wiki.',
487 'perfdisabledsub' => "Here's a saved copy from $1:", # obsolete?
488 'perfcached' => 'The following data is cached and may not be completely up to date:',
489 'wrong_wfQuery_params' => "Incorrect parameters to wfQuery()<br />
490 Function: $1<br />
491 Query: $2
492 ",
493 'viewsource' => 'View source',
494 'protectedtext' => "This page has been locked to prevent editing; there are
495 a number of reasons why this may be so, please see
496 [[{{ns:4}}:Protected page]].
497
498 You can view and copy the source of this page:",
499 'seriousxhtmlerrors' => 'There were serious xhtml markup errors detected by tidy.',
500
501 # Login and logout pages
502 #
503 "logouttitle" => 'User logout',
504 "logouttext" => "You are now logged out.
505 You can continue to use {{SITENAME}} anonymously, or you can log in
506 again as the same or as a different user. Note that some pages may
507 continue to be displayed as if you were still logged in, until you clear
508 your browser cache\n",
509
510 'welcomecreation' => "== Welcome, $1! ==
511
512 Your account has been created. Don't forget to change your {{SITENAME}} preferences.",
513
514 'loginpagetitle' => 'User login',
515 'yourname' => 'Your user name',
516 'yourpassword' => 'Your password',
517 'yourpasswordagain' => 'Retype password',
518 'newusersonly' => ' (new users only)',
519 'remembermypassword' => 'Remember my password across sessions.',
520 'loginproblem' => '<b>There has been a problem with your login.</b><br />Try again!',
521 'alreadyloggedin' => "<font color=red><b>User $1, you are already logged in!</b></font><br />\n",
522
523 'login' => 'Log in',
524 'loginprompt' => "You must have cookies enabled to log in to {{SITENAME}}.",
525 'userlogin' => 'Create an account or log in',
526 'logout' => 'Log out',
527 'userlogout' => 'Log out',
528 'notloggedin' => 'Not logged in',
529 'createaccount' => 'Create new account',
530 'createaccountmail' => 'by email',
531 'badretype' => 'The passwords you entered do not match.',
532 'userexists' => 'The user name you entered is already in use. Please choose a different name.',
533 'youremail' => 'Your email*',
534 'yourrealname' => 'Your real name*',
535 'yourlanguage' => 'Interface language',
536 'yourvariant' => 'Language variant',
537 'yournick' => 'Your nickname (for signatures)',
538 'emailforlost' => "Fields marked with a star (*) are optional. Storing an email address enables people to contact you through the website without you having to reveal your
539 email address to them, and it can be used to send you a new password if you forget it.<br /><br />Your real name, if you choose to provide it, will be used for giving you attribution for your work.",
540 'prefs-help-userdata' => '* <strong>Real name</strong> (optional): if you choose to provide it this will be used for giving you attribution for your work.<br/>
541 * <strong>Email</strong> (optional): Enables people to contact you through the website without you having to reveal your
542 email address to them, and it can be used to send you a new password if you forget it.',
543 'loginerror' => 'Login error',
544 'nocookiesnew' => "The user account was created, but you are not logged in. {{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them, then log in with your new username and password.",
545 "nocookieslogin" => "{{SITENAME}} uses cookies to log in users. You have cookies disabled. Please enable them and try again.",
546 'noname' => 'You have not specified a valid user name.',
547 'loginsuccesstitle' => 'Login successful',
548 'loginsuccess' => "You are now logged in to {{SITENAME}} as \"$1\".",
549 'nosuchuser' => "There is no user by the name \"$1\".
550 Check your spelling, or use the form below to create a new user account.",
551 'nosuchusershort' => "There is no user by the name \"$1\". Check your spelling.",
552 'wrongpassword' => 'The password you entered is incorrect. Please try again.',
553 'mailmypassword' => 'Mail me a new password',
554 'passwordremindertitle' => "Password reminder from {{SITENAME}}",
555 'passwordremindertext' => "Someone (probably you, from IP address $1)
556 requested that we send you a new {{SITENAME}} login password.
557 The password for user \"$2\" is now \"$3\".
558 You should log in and change your password now.",
559 'noemail' => "There is no e-mail address recorded for user \"$1\".",
560 'passwordsent' => "A new password has been sent to the e-mail address
561 registered for \"$1\".
562 Please log in again after you receive it.",
563 'loginend' => '&nbsp;',
564 'mailerror' => "Error sending mail: $1",
565 'acct_creation_throttle_hit' => 'Sorry, you have already created $1 accounts. You can\'t make any more.',
566
567 # Edit page toolbar
568 'bold_sample'=>'Bold text',
569 'bold_tip'=>'Bold text',
570 'italic_sample'=>'Italic text',
571 'italic_tip'=>'Italic text',
572 'link_sample'=>'Link title',
573 'link_tip'=>'Internal link',
574 'extlink_sample'=>'http://www.example.com link title',
575 'extlink_tip'=>'External link (remember http:// prefix)',
576 'headline_sample'=>'Headline text',
577 'headline_tip'=>'Level 2 headline',
578 'math_sample'=>'Insert formula here',
579 'math_tip'=>'Mathematical formula (LaTeX)',
580 'nowiki_sample'=>'Insert non-formatted text here',
581 'nowiki_tip'=>'Ignore wiki formatting',
582 'image_sample'=>'Example.jpg',
583 'image_tip'=>'Embedded image',
584 'media_sample'=>'Example.mp3',
585 'media_tip'=>'Media file link',
586 'sig_tip'=>'Your signature with timestamp',
587 'hr_tip'=>'Horizontal line (use sparingly)',
588 'infobox'=>'Click a button to get an example text',
589 # alert box shown in browsers where text selection does not work, test e.g. with mozilla or konqueror
590 'infobox_alert'=>"Please enter the text you want to be formatted.\\n It will be shown in the infobox for copy and pasting.\\nExample:\\n$1\\nwill become:\\n$2",
591
592 # Edit pages
593 #
594 'summary' => 'Summary',
595 'subject' => 'Subject/headline',
596 'minoredit' => 'This is a minor edit',
597 'watchthis' => 'Watch this page',
598 'savearticle' => 'Save page',
599 'preview' => 'Preview',
600 'showpreview' => 'Show preview',
601 'blockedtitle' => 'User is blocked',
602 'blockedtext' => "Your user name or IP address has been blocked by $1.
603 The reason given is this:<br />''$2''<p>You may contact $1 or one of the other
604 [[{{ns:4}}:Administrators|administrators]] to discuss the block.
605
606 Note that you may not use the \"email this user\" feature unless you have a valid email address registered in your [[Special:Preferences|user preferences]].
607
608 Your IP address is $3. Please include this address in any queries you make.
609 ",
610 'whitelistedittitle' => 'Login required to edit',
611 'whitelistedittext' => 'You have to [[Special:Userlogin|login]] to edit pages.',
612 'whitelistreadtitle' => 'Login required to read',
613 'whitelistreadtext' => 'You have to [[Special:Userlogin|login]] to read pages.',
614 'whitelistacctitle' => 'You are not allowed to create an account',
615 'whitelistacctext' => 'To be allowed to create accounts in this Wiki you have to [[Special:Userlogin|log]] in and have the appropriate permissions.',
616 'loginreqtitle' => 'Login Required',
617 'loginreqtext' => 'You must [[special:Userlogin|login]] to view other pages.',
618 'accmailtitle' => 'Password sent.',
619 'accmailtext' => "The Password for '$1' has been sent to $2.",
620 'newarticle' => '(New)',
621 'newarticletext' =>
622 "You've followed a link to a page that doesn't exist yet.
623 To create the page, start typing in the box below
624 (see the [[{{ns:4}}:Help|help page]] for more info).
625 If you are here by mistake, just click your browser's '''back''' button.",
626 'talkpagetext' => '<!-- MediaWiki:talkpagetext -->',
627 'anontalkpagetext' => "----''This is the discussion page for an anonymous user who has not created an account yet or who does not use it. We therefore have to use the numerical [[IP address]] to identify him/her. Such an IP address can be shared by several users. If you are an anonymous user and feel that irrelevant comments have been directed at you, please [[Special:Userlogin|create an account or log in]] to avoid future confusion with other anonymous users.'' ",
628 'noarticletext' => '(There is currently no text in this page)',
629 'clearyourcache' => "'''Note:''' After saving, you have to clear your browser cache to see the changes: '''Mozilla:''' click ''Reload'' (or ''Ctrl-R''), '''IE / Opera:''' ''Ctrl-F5'', '''Safari:''' ''Cmd-R'', '''Konqueror''' ''Ctrl-R''.",
630 'usercssjsyoucanpreview' => "<strong>Tip:</strong> Use the 'Show preview' button to test your new CSS/JS before saving.",
631 'usercsspreview' => "'''Remember that you are only previewing your user CSS, it has not yet been saved!'''",
632 'userjspreview' => "'''Remember that you are only testing/previewing your user JavaScript, it has not yet been saved!'''",
633 'updated' => '(Updated)',
634 'note' => '<strong>Note:</strong> ',
635 'previewnote' => 'Remember that this is only a preview, and has not yet been saved!',
636 'previewconflict' => 'This preview reflects the text in the upper
637 text editing area as it will appear if you choose to save.',
638 'editing' => "Editing $1",
639 "sectionedit" => " (section)",
640 'commentedit' => ' (comment)',
641 'editconflict' => 'Edit conflict: $1',
642 'explainconflict' => "Someone else has changed this page since you
643 started editing it.
644 The upper text area contains the page text as it currently exists.
645 Your changes are shown in the lower text area.
646 You will have to merge your changes into the existing text.
647 <b>Only</b> the text in the upper text area will be saved when you
648 press \"Save page\".\n<p>",
649 'yourtext' => 'Your text',
650 'storedversion' => 'Stored version',
651 'nonunicodebrowser' => "<strong>WARNING: Your browser is not unicode compliant, please change it before editing an article.</strong>",
652 'editingold' => "<strong>WARNING: You are editing an out-of-date
653 revision of this page.
654 If you save it, any changes made since this revision will be lost.</strong>\n",
655 'yourdiff' => 'Differences',
656 'copyrightwarning' => "Please note that all contributions to {{SITENAME}} are
657 considered to be released under the $2 (see $1 for details).
658 If you don't want your writing to be edited mercilessly and redistributed
659 at will, then don't submit it here.<br />
660 You are also promising us that you wrote this yourself, or copied it from a
661 public domain or similar free resource.
662 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
663 'copyrightwarning2' => "Please note that all contributions to {{SITENAME}}
664 may be edited, altered, or removed by other contributors.
665 If you don't want your writing to be edited mercilessly, then don't submit it here.<br />
666 You are also promising us that you wrote this yourself, or copied it from a
667 public domain or similar free resource (see $1 for details).
668 <strong>DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!</strong>",
669 'longpagewarning' => "WARNING: This page is $1 kilobytes long; some
670 browsers may have problems editing pages approaching or longer than 32kb.
671 Please consider breaking the page into smaller sections.",
672 'readonlywarning' => 'WARNING: The database has been locked for maintenance,
673 so you will not be able to save your edits right now. You may wish to cut-n-paste
674 the text into a text file and save it for later.',
675 'protectedpagewarning' => "WARNING: This page has been locked so that only
676 users with sysop privileges can edit it. Be sure you are following the
677 <a href='$wgScript/{{ns:4}}:Protected_page_guidelines'>protected page
678 guidelines</a>.",
679 'templatesused' => 'Templates used on this page:',
680
681 # History pages
682 #
683 'revhistory' => 'Revision history',
684 'nohistory' => 'There is no edit history for this page.',
685 'revnotfound' => 'Revision not found',
686 'revnotfoundtext' => "The old revision of the page you asked for could not be found.
687 Please check the URL you used to access this page.\n",
688 'loadhist' => 'Loading page history',
689 'currentrev' => 'Current revision',
690 'revisionasof' => 'Revision as of $1',
691 'revisionasofwithlink' => 'Revision as of $1; $2<br />$3 | $4',
692 'previousrevision' => '&larr;Older revision',
693 'nextrevision' => 'Newer revision&rarr;',
694 'currentrevisionlink' => 'view current revision',
695 'cur' => 'cur',
696 'next' => 'next',
697 'last' => 'last',
698 'orig' => 'orig',
699 'histlegend' => 'Diff selection: mark the radio boxes of the versions to compare and hit enter or the button at the bottom.<br/>
700 Legend: (cur) = difference with current version,
701 (last) = difference with preceding version, M = minor edit.',
702 'history_copyright' => '-',
703
704 # Diffs
705 #
706 'difference' => '(Difference between revisions)',
707 'loadingrev' => 'loading revision for diff',
708 'lineno' => "Line $1:",
709 'editcurrent' => 'Edit the current version of this page',
710 'selectnewerversionfordiff' => 'Select a newer version for comparison',
711 'selectolderversionfordiff' => 'Select an older version for comparison',
712 'compareselectedversions' => 'Compare selected versions',
713
714 # Search results
715 #
716 'searchresults' => 'Search results',
717 'searchresulttext' => "For more information about searching {{SITENAME}}, see [[Project:Searching|Searching {{SITENAME}}]].",
718 'searchquery' => "For query \"$1\"",
719 'badquery' => 'Badly formed search query',
720 'badquerytext' => 'We could not process your query.
721 This is probably because you have attempted to search for a
722 word fewer than three letters long, which is not yet supported.
723 It could also be that you have mistyped the expression, for
724 example "fish and and scales".
725 Please try another query.',
726 'matchtotals' => "The query \"$1\" matched $2 page titles
727 and the text of $3 pages.",
728 'nogomatch' => 'No page with this exact title exists, trying full text search.',
729 'titlematches' => 'Article title matches',
730 'notitlematches' => 'No page title matches',
731 'textmatches' => 'Page text matches',
732 'notextmatches' => 'No page text matches',
733 'prevn' => "previous $1",
734 'nextn' => "next $1",
735 'viewprevnext' => "View ($1) ($2) ($3).",
736 'showingresults' => "Showing below up to <b>$1</b> results starting with #<b>$2</b>.",
737 'showingresultsnum' => "Showing below <b>$3</b> results starting with #<b>$2</b>.",
738 'nonefound' => "'''Note''': unsuccessful searches are
739 often caused by searching for common words like \"have\" and \"from\",
740 which are not indexed, or by specifying more than one search term (only pages
741 containing all of the search terms will appear in the result).",
742 'powersearch' => 'Search',
743 'powersearchtext' => "
744 Search in namespaces :<br />
745 $1<br />
746 $2 List redirects &nbsp; Search for $3 $9",
747 "searchdisabled" => '<p style="margin: 1.5em 2em 1em">{{SITENAME}} search is disabled for performance reasons. You can search via Google in the meantime.
748 <span style="font-size: 89%; display: block; margin-left: .2em">Note that their indexes of {{SITENAME}} content may be out of date.</span></p>',
749 'googlesearch' => "
750 <!-- SiteSearch Google -->
751 <FORM method=GET action=\"http://www.google.com/search\">
752 <TABLE bgcolor=\"#FFFFFF\"><tr><td>
753 <A HREF=\"http://www.google.com/\">
754 <IMG SRC=\"http://www.google.com/logos/Logo_40wht.gif\"
755 border=\"0\" ALT=\"Google\"></A>
756 </td>
757 <td>
758 <INPUT TYPE=text name=q size=31 maxlength=255 value=\"$1\">
759 <INPUT type=submit name=btnG VALUE=\"Google Search\">
760 <font size=-1>
761 <input type=hidden name=domains value=\"{{SERVER}}\"><br /><input type=radio name=sitesearch value=\"\"> WWW <input type=radio name=sitesearch value=\"{{SERVER}}\" checked> {{SERVER}} <br />
762 <input type='hidden' name='ie' value='$2'>
763 <input type='hidden' name='oe' value='$2'>
764 </font>
765 </td></tr></TABLE>
766 </FORM>
767 <!-- SiteSearch Google -->",
768 'blanknamespace' => '(Main)',
769
770 # Preferences page
771 #
772 'preferences' => 'Preferences',
773 'prefsnologin' => 'Not logged in',
774 'prefsnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
775 to set user preferences.",
776 'prefslogintext' => "You are logged in as \"$1\".
777 Your internal ID number is $2.
778
779 See [[{{ns:4}}:User preferences help]] for help deciphering the options.",
780 'prefsreset' => 'Preferences have been reset from storage.',
781 'qbsettings' => 'Quickbar settings',
782 'qbsettingsnote' => 'This preference only works in the \'Standard\' and the \'CologneBlue\' skin.',
783 'changepassword' => 'Change password',
784 'skin' => 'Skin',
785 'math' => 'Rendering math',
786 'dateformat' => 'Date format',
787 'math_failure' => 'Failed to parse',
788 'math_unknown_error' => 'unknown error',
789 'math_unknown_function' => 'unknown function ',
790 'math_lexing_error' => 'lexing error',
791 'math_syntax_error' => 'syntax error',
792 'math_image_error' => 'PNG conversion failed; check for correct installation of latex, dvips, gs, and convert',
793 'math_bad_tmpdir' => 'Can\'t write to or create math temp directory',
794 'math_bad_output' => 'Can\'t write to or create math output directory',
795 'math_notexvc' => 'Missing texvc executable; please see math/README to configure.',
796 'prefs-personal' => 'User data',
797 'prefs-rc' => 'Recent changes and stub display',
798 'prefs-misc' => 'Misc settings',
799 'saveprefs' => 'Save preferences',
800 'resetprefs' => 'Reset preferences',
801 'oldpassword' => 'Old password',
802 'newpassword' => 'New password',
803 'retypenew' => 'Retype new password',
804 'textboxsize' => 'Editing',
805 'rows' => 'Rows',
806 'columns' => 'Columns',
807 'searchresultshead' => 'Search result settings',
808 'resultsperpage' => 'Hits to show per page',
809 'contextlines' => 'Lines to show per hit',
810 'contextchars' => 'Characters of context per line',
811 'stubthreshold' => 'Threshold for stub display',
812 'recentchangescount' => 'Number of titles in recent changes',
813 'savedprefs' => 'Your preferences have been saved.',
814 'timezonelegend' => 'Time zone',
815 'timezonetext' => 'Enter number of hours your local time differs
816 from server time (UTC).',
817 'localtime' => 'Local time display',
818 'timezoneoffset' => 'Offset',
819 'servertime' => 'Server time is now',
820 'guesstimezone' => 'Fill in from browser',
821 'emailflag' => 'Disable e-mail from other users',
822 'defaultns' => 'Search in these namespaces by default:',
823
824 # User levels special page
825 #
826
827 # switching pan
828 'userlevels-lookup-group' => 'Manage group rights',
829 'userlevels-group-edit' => 'Existent groups: ',
830 'editgroup' => 'Edit Group',
831 'addgroup' => 'Add Group',
832
833 'userlevels-lookup-user' => 'Manage user groups',
834 'userlevels-user-editname' => 'Enter a username: ',
835 'editusergroup' => 'Edit User Groups',
836
837 # group editing
838 'userlevels-editgroup' => 'Edit group',
839 'userlevels-addgroup' => 'Add group',
840 'userlevels-editgroup-name' => 'Group name: ',
841 'userlevels-editgroup-description' => 'Group description (max 255 characters):<br />',
842 'savegroup' => 'Save Group',
843
844 # user groups editing
845 'userlevels-editusergroup' => 'Edit user groups',
846 'saveusergroups' => 'Save User Groups',
847 'userlevels-groupsmember' => 'Member of:',
848 'userlevels-groupsavailable' => 'Available groups:',
849 'userlevels-groupshelp' => 'Select groups you want the user to be removed from or added to.
850 Unselected groups will not be changed. You can unselect a group by using CTRL + Left Click',
851 # Recent changes
852 #
853 'changes' => 'changes',
854 'recentchanges' => 'Recent changes',
855 'recentchanges-url' => 'Special:Recentchanges',
856 'recentchangestext' => 'Track the most recent changes to the wiki on this page.',
857 'rcloaderr' => 'Loading recent changes',
858 'rcnote' => "Below are the last <strong>$1</strong> changes in last <strong>$2</strong> days.",
859 'rcnotefrom' => "Below are the changes since <b>$2</b> (up to <b>$1</b> shown).",
860 'rclistfrom' => "Show new changes starting from $1",
861 'showhideminor' => "$1 minor edits | $2 bots | $3 logged in users | $4 patrolled edits ",
862 'rclinks' => "Show last $1 changes in last $2 days<br />$3",
863 'rchide' => "in $4 form; $1 minor edits; $2 secondary namespaces; $3 multiple edits.",
864 'rcliu' => "; $1 edits from logged in users",
865 'diff' => 'diff',
866 'hist' => 'hist',
867 'hide' => 'hide',
868 'show' => 'show',
869 'tableform' => 'table',
870 'listform' => 'list',
871 'nchanges' => "$1 changes",
872 'minoreditletter' => 'm',
873 'newpageletter' => 'N',
874 'sectionlink' => '&rarr;',
875
876 # Upload
877 #
878 'upload' => 'Upload file',
879 'uploadbtn' => 'Upload file',
880 'uploadlink' => 'Upload images',
881 'reupload' => 'Re-upload',
882 'reuploaddesc' => 'Return to the upload form.',
883 'uploadnologin' => 'Not logged in',
884 'uploadnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
885 to upload files.",
886 'uploadfile' => 'Upload images, sounds, documents etc.',
887 'uploaderror' => 'Upload error',
888 'uploadtext' =>
889 "'''STOP!''' Before you upload here,
890 make sure to read and follow the [[Project:Image use policy|image use policy]].
891
892 To view or search previously uploaded images,
893 go to the [[Special:Imagelist|list of uploaded images]].
894 Uploads and deletions are logged on the
895 [[Project:Upload log|upload log]].
896
897 Use the form below to upload new image files for use in
898 illustrating your pages.
899 On most browsers, you will see a \"Browse...\" button, which will
900 bring up your operating system's standard file open dialog.
901 Choosing a file will fill the name of that file into the text
902 field next to the button.
903 You must also check the box affirming that you are not
904 violating any copyrights by uploading the file.
905 Press the \"Upload\" button to finish the upload.
906 This may take some time if you have a slow internet connection.
907
908 The preferred formats are JPEG for photographic images, PNG
909 for drawings and other iconic images, and OGG for sounds.
910 Please name your files descriptively to avoid confusion.
911 To include the image in a page, use a link in the form
912 '''<nowiki>[[{{ns:6}}:file.jpg]]</nowiki>''' or
913 '''<nowiki>[[{{ns:6}}:file.png|alt text]]</nowiki>''' or
914 '''<nowiki>[[{{ns:-2}}:file.ogg]]</nowiki>''' for sounds.
915
916 Please note that as with wiki pages, others may edit or
917 delete your uploads if they think it serves the project, and
918 you may be blocked from uploading if you abuse the system.",
919
920 'uploadlog' => 'upload log',
921 'uploadlogpage' => 'Upload_log',
922 'uploadlogpagetext' => 'Below is a list of the most recent file uploads.',
923 'filename' => 'Filename',
924 'filedesc' => 'Summary',
925 'filestatus' => 'Copyright status',
926 'filesource' => 'Source',
927 'affirmation' => "I affirm that the copyright holder of this file
928 agrees to license it under the terms of the $1.",
929 'copyrightpage' => "{{ns:4}}:Copyrights",
930 'copyrightpagename' => "{{SITENAME}} copyright",
931 'uploadedfiles' => 'Uploaded files',
932 'noaffirmation' => 'You must affirm that your upload does not violate any copyrights.',
933 'ignorewarning' => 'Ignore warning and save file anyway.',
934 'minlength' => 'Image names must be at least three letters.',
935 'illegalfilename' => 'The filename "$1" contains characters that are not allowed in page titles. Please rename the file and try uploading it again.',
936 'badfilename' => "Image name has been changed to \"$1\".",
937 'badfiletype' => "\".$1\" is not a recommended image file format.",
938 'largefile' => 'It is recommended that images not exceed 100k in size.',
939 'emptyfile' => 'The file you uploaded seems to be empty. This might be due to a typo in the file name. Please check whether you really want to upload this file.',
940 'fileexists' => 'A file with this name exists already, please check $1 if you are not sure if you want to change it.',
941 'successfulupload' => 'Successful upload',
942 'fileuploaded' => "File uploaded successfully.
943 Please follow this link: $2 to the description page and fill
944 in information about the file, such as where it came from, when it was
945 created and by whom, and anything else you may know about it. If this is an image, you can insert it like this: <tt><nowiki>[[Image:$1|thumb|Description]]</nowiki></tt>",
946 'uploadwarning' => 'Upload warning',
947 'savefile' => 'Save file',
948 'uploadedimage' => "uploaded \"$1\"",
949 'uploaddisabled' => 'Sorry, uploading is disabled.',
950 'uploadcorrupt' => 'The file is corrupt or has an incorrect extension. Please check the file and upload again.',
951
952 # Image list
953 #
954 'imagelist' => 'Image list',
955 'imagelisttext' => "Below is a list of $1 images sorted $2.",
956 'getimagelist' => 'fetching image list',
957 'ilshowmatch' => 'Show all images with names matching',
958 'ilsubmit' => 'Search',
959 'showlast' => "Show last $1 images sorted $2.",
960 'all' => 'all',
961 'byname' => 'by name',
962 'bydate' => 'by date',
963 'bysize' => 'by size',
964 'imgdelete' => 'del',
965 'imgdesc' => 'desc',
966 'imglegend' => 'Legend: (desc) = show/edit image description.',
967 'imghistory' => 'Image history',
968 'revertimg' => 'rev',
969 'deleteimg' => 'del',
970 'deleteimgcompletely' => 'Delete all revisions',
971 'imghistlegend' => 'Legend: (cur) = this is the current image, (del) = delete
972 this old version, (rev) = revert to this old version.
973 <br /><i>Click on date to see image uploaded on that date</i>.',
974 'imagelinks' => 'Image links',
975 'linkstoimage' => 'The following pages link to this image:',
976 'nolinkstoimage' => 'There are no pages that link to this image.',
977
978 # Statistics
979 #
980 'statistics' => 'Statistics',
981 'sitestats' => 'Site statistics',
982 'userstats' => 'User statistics',
983 'sitestatstext' => "There are '''$1''' total pages in the database.
984 This includes \"talk\" pages, pages about {{SITENAME}}, minimal \"stub\"
985 pages, redirects, and others that probably don't qualify as content pages.
986 Excluding those, there are '''$2''' pages that are probably legitimate
987 content pages.
988
989 There have been a total of '''$3''' page views, and '''$4''' page edits
990 since the wiki was setup.
991 That comes to '''$5''' average edits per page, and '''$6''' views per edit.",
992 'userstatstext' => "There are '''$1''' registered users.
993 '''$2''' of these are administrators (see $3).",
994
995 # Maintenance Page
996 #
997 'maintenance' => 'Maintenance page',
998 'maintnancepagetext' => 'This page includes several handy tools for everyday maintenance. Some of these functions tend to stress the database, so please do not hit reload after every item you fixed ;-)',
999 'maintenancebacklink' => 'Back to Maintenance Page',
1000 'disambiguations' => 'Disambiguation pages',
1001 'disambiguationspage' => "{{ns:4}}:Links_to_disambiguating_pages",
1002 'disambiguationstext' => "The following pages link to a <i>disambiguation page</i>. They should link to the appropriate topic instead.<br />A page is treated as dismbiguation if it is linked from $1.<br />Links from other namespaces are <i>not</i> listed here.",
1003 'doubleredirects' => 'Double Redirects',
1004 'doubleredirectstext' => "<b>Attention:</b> This list may contain false positives. That usually means there is additional text with links below the first #REDIRECT.<br />\nEach row contains links to the first and second redirect, as well as the first line of the second redirect text, usually giving the \"real\" target page, which the first redirect should point to.",
1005 'brokenredirects' => 'Broken Redirects',
1006 'brokenredirectstext' => 'The following redirects link to a non-existing pages.',
1007 'selflinks' => 'Pages with Self Links',
1008 'selflinkstext' => 'The following pages contain a link to themselves, which they should not.',
1009 'mispeelings' => 'Pages with misspellings',
1010 'mispeelingstext' => "The following pages contain a common misspelling, which are listed on $1. The correct spelling might be given (like this).",
1011 'mispeelingspage' => 'List of common misspellings',
1012 'missinglanguagelinks' => 'Missing Language Links',
1013 'missinglanguagelinksbutton' => 'Find missing language links for',
1014 'missinglanguagelinkstext' => "These pages do <i>not</i> link to their counterpart in $1. Redirects and subpages are <i>not</i> shown.",
1015
1016
1017 # Miscellaneous special pages
1018 #
1019 'orphans' => 'Orphaned pages',
1020 'geo' => 'GEO coordinates',
1021 'validate' => 'Validate page',
1022 'lonelypages' => 'Orphaned pages',
1023 'uncategorizedpages' => 'Uncategorized pages',
1024 'unusedimages' => 'Unused images',
1025 'popularpages' => 'Popular pages',
1026 'nviews' => '$1 views',
1027 'wantedpages' => 'Wanted pages',
1028 'nlinks' => '$1 links',
1029 'allpages' => 'All pages',
1030 'randompage' => 'Random page',
1031 'randompage-url'=> 'Special:Randompage',
1032 'shortpages' => 'Short pages',
1033 'longpages' => 'Long pages',
1034 'deadendpages' => 'Dead-end pages',
1035 'listusers' => 'User list',
1036 'listadmins' => 'Admins list',
1037 'specialpages' => 'Special pages',
1038 'spheading' => 'Special pages for all users',
1039 'sysopspheading' => 'For sysop use only',
1040 'developerspheading' => 'For developer use only',
1041 'protectpage' => 'Protect page',
1042 'recentchangeslinked' => 'Related changes',
1043 'rclsub' => "(to pages linked from \"$1\")",
1044 'debug' => 'Debug',
1045 'newpages' => 'New pages',
1046 'ancientpages' => 'Oldest pages',
1047 'intl' => 'Interlanguage links',
1048 'move' => 'Move',
1049 'movethispage' => 'Move this page',
1050 'unusedimagestext' => '<p>Please note that other web sites may link to an image with
1051 a direct URL, and so may still be listed here despite being
1052 in active use.',
1053 'booksources' => 'Book sources',
1054 'categoriespagetext' => 'The following categories exists in the wiki.',
1055 'data' => 'Data',
1056 'userlevels' => 'User levels management',
1057
1058 # FIXME: Other sites, of course, may have affiliate relations with the booksellers list
1059 'booksourcetext' => "Below is a list of links to other sites that
1060 sell new and used books, and may also have further information
1061 about books you are looking for.
1062 {{SITENAME}} is not affiliated with any of these businesses, and
1063 this list should not be construed as an endorsement.",
1064 'isbn' => 'ISBN',
1065 'rfcurl' => "http://www.faqs.org/rfcs/rfc$1.html",
1066 'alphaindexline' => "$1 to $2",
1067 'version' => 'Version',
1068 'log' => 'Logs',
1069 'alllogstext' => 'Combined display of upload, deletion, protection, blocking, and sysop logs.
1070 You can narrow down the view by selecting a log type, the user name, or the affected page.',
1071
1072 # Special:Allpages
1073 'nextpage' => 'Next page ($1)',
1074 'articlenamespace' => '(articles)',
1075 'allpagesformtext1' => 'Display pages starting at: $1',
1076 'allpagesformtext2' => 'Choose namespace: $1 $2',
1077 'allarticles' => 'All articles',
1078 'allpagesprev' => 'Previous',
1079 'allpagesnext' => 'Next',
1080 'allpagesnamespace' => 'All pages ($1 namespace)',
1081 'allpagessubmit' => 'Go',
1082
1083 # Email this user
1084 #
1085 'mailnologin' => 'No send address',
1086 'mailnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin\">logged in</a>
1087 and have a valid e-mail address in your <a href=\"{{localurl:Special:Preferences}}\">preferences</a>
1088 to send e-mail to other users.",
1089 'emailuser' => 'E-mail this user',
1090 'emailpage' => 'E-mail user',
1091 'emailpagetext' => 'If this user has entered a valid e-mail address in
1092 his or her user preferences, the form below will send a single message.
1093 The e-mail address you entered in your user preferences will appear
1094 as the "From" address of the mail, so the recipient will be able
1095 to reply.',
1096 'usermailererror' => 'Mail object returned error: ',
1097 'defemailsubject' => "{{SITENAME}} e-mail",
1098 'noemailtitle' => 'No e-mail address',
1099 'noemailtext' => 'This user has not specified a valid e-mail address,
1100 or has chosen not to receive e-mail from other users.',
1101 'emailfrom' => 'From',
1102 'emailto' => 'To',
1103 'emailsubject' => 'Subject',
1104 'emailmessage' => 'Message',
1105 'emailsend' => 'Send',
1106 'emailsent' => 'E-mail sent',
1107 'emailsenttext' => 'Your e-mail message has been sent.',
1108
1109 # Watchlist
1110 #
1111 'watchlist' => 'My watchlist',
1112 'watchlistsub' => "(for user \"$1\")",
1113 'nowatchlist' => 'You have no items on your watchlist.',
1114 'watchnologin' => 'Not logged in',
1115 'watchnologintext' => "You must be <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
1116 to modify your watchlist.",
1117 'addedwatch' => 'Added to watchlist',
1118 'addedwatchtext' => "The page \"$1\" has been added to your [[{{ns:-1}}:Watchlist|watchlist]].
1119 Future changes to this page and its associated Talk page will be listed there,
1120 and the page will appear '''bolded''' in the [[Special:Recentchanges|list of recent changes]] to
1121 make it easier to pick out.
1122
1123 <p>If you want to remove the page from your watchlist later, click \"Stop watching\" in the sidebar.",
1124 'removedwatch' => 'Removed from watchlist',
1125 'removedwatchtext' => "The page \"$1\" has been removed from your watchlist.",
1126 'watch' => 'Watch',
1127 'watchthispage' => 'Watch this page',
1128 'unwatch' => 'Unwatch',
1129 'unwatchthispage' => 'Stop watching',
1130 'notanarticle' => 'Not a content page',
1131 'watchnochange' => 'None of your watched items were edited in the time period displayed.',
1132 'watchdetails' => "($1 pages watched not counting talk pages;
1133 $2 total pages edited since cutoff;
1134 $3...
1135 <a href='$4'>show and edit complete list</a>.)",
1136 'watchmethod-recent'=> 'checking recent edits for watched pages',
1137 'watchmethod-list' => 'checking watched pages for recent edits',
1138 'removechecked' => 'Remove checked items from watchlist',
1139 'watchlistcontains' => "Your watchlist contains $1 pages.",
1140 'watcheditlist' => 'Here\'s an alphabetical list of your
1141 watched pages. Check the boxes of pages you want to remove
1142 from your watchlist and click the \'remove checked\' button
1143 at the bottom of the screen.',
1144 'removingchecked' => 'Removing requested items from watchlist...',
1145 'couldntremove' => "Couldn't remove item '$1'...",
1146 'iteminvalidname' => "Problem with item '$1', invalid name...",
1147 'wlnote' => "Below are the last $1 changes in the last <b>$2</b> hours.",
1148 'wlshowlast' => "Show last $1 hours $2 days $3",
1149 'wlsaved' => 'This is a saved version of your watchlist.',
1150
1151
1152 # Delete/protect/revert
1153 #
1154 'deletepage' => 'Delete page',
1155 'confirm' => 'Confirm',
1156 'excontent' => 'content was:',
1157 'exbeforeblank' => 'content before blanking was:',
1158 'exblank' => 'page was empty',
1159 'confirmdelete' => 'Confirm delete',
1160 'deletesub' => "(Deleting \"$1\")",
1161 'historywarning' => 'Warning: The page you are about to delete has a history: ',
1162 'confirmdeletetext' => "You are about to permanently delete a page
1163 or image along with all of its history from the database.
1164 Please confirm that you intend to do this, that you understand the
1165 consequences, and that you are doing this in accordance with
1166 [[{{ns:4}}:Policy]].",
1167 'confirmcheck' => 'Yes, I really want to delete this.',
1168 'actioncomplete' => 'Action complete',
1169 'deletedtext' => "\"$1\" has been deleted.
1170 See $2 for a record of recent deletions.",
1171 'deletedarticle' => "deleted \"$1\"",
1172 'dellogpage' => 'Deletion_log',
1173 'dellogpagetext' => 'Below is a list of the most recent deletions.',
1174 'deletionlog' => 'deletion log',
1175 'reverted' => 'Reverted to earlier revision',
1176 'deletecomment' => 'Reason for deletion',
1177 'imagereverted' => 'Revert to earlier version was successful.',
1178 'rollback' => 'Roll back edits',
1179 'rollback_short' => 'Rollback',
1180 'rollbacklink' => 'rollback',
1181 'rollbackfailed' => 'Rollback failed',
1182 'cantrollback' => 'Cannot revert edit; last contributor is only author of this page.',
1183 'alreadyrolled' => "Cannot rollback last edit of [[$1]]
1184 by [[User:$2|$2]] ([[User talk:$2|Talk]]); someone else has edited or rolled back the page already.
1185
1186 Last edit was by [[User:$3|$3]] ([[User talk:$3|Talk]]). ",
1187 # only shown if there is an edit comment
1188 'editcomment' => "The edit comment was: \"<i>$1</i>\".",
1189 'revertpage' => "Reverted edit of $2, changed back to last version by $1",
1190 'protectlogpage' => 'Protection_log',
1191 'protectlogtext' => "Below is a list of page locks/unlocks.
1192 See [[{{ns:4}}:Protected page]] for more information.",
1193 'protectedarticle' => "protected [[$1]]",
1194 'unprotectedarticle' => "unprotected [[$1]]",
1195 'protectsub' =>"(Protecting \"$1\")",
1196 'confirmprotecttext' => 'Do you really want to protect this page?',
1197 'confirmprotect' => 'Confirm protection',
1198 'protectcomment' => 'Reason for protecting',
1199 'unprotectsub' =>"(Unprotecting \"$1\")",
1200 'confirmunprotecttext' => 'Do you really want to unprotect this page?',
1201 'confirmunprotect' => 'Confirm unprotection',
1202 'unprotectcomment' => 'Reason for unprotecting',
1203 'protectreason' => '(give a reason)',
1204
1205 # Undelete
1206 'undelete' => 'Restore deleted page',
1207 'undeletepage' => 'View and restore deleted pages',
1208 'undeletepagetext' => 'The following pages have been deleted but are still in the archive and
1209 can be restored. The archive may be periodically cleaned out.',
1210 'undeletearticle' => 'Restore deleted page',
1211 'undeleterevisions' => "$1 revisions archived",
1212 'undeletehistory' => 'If you restore the page, all revisions will be restored to the history.
1213 If a new page with the same name has been created since the deletion, the restored
1214 revisions will appear in the prior history, and the current revision of the live page
1215 will not be automatically replaced.',
1216 'undeleterevision' => "Deleted revision as of $1",
1217 'undeletebtn' => 'Restore!',
1218 'undeletedarticle' => "restored \"$1\"",
1219 'undeletedrevisions' => "$1 revisions restored",
1220 'undeletedtext' => "[[$1]] has been successfully restored.
1221 See [[{{ns:4}}:Deletion_log]] for a record of recent deletions and restorations.",
1222
1223 # Contributions
1224 #
1225 'contributions' => 'User contributions',
1226 'mycontris' => 'My contributions',
1227 'contribsub' => "For $1",
1228 'nocontribs' => 'No changes were found matching these criteria.',
1229 'ucnote' => "Below are this user's last <b>$1</b> changes in the last <b>$2</b> days.",
1230 'uclinks' => "View the last $1 changes; view the last $2 days.",
1231 'uctop' => ' (top)' ,
1232 'newbies' => 'newbies',
1233
1234 # What links here
1235 #
1236 'whatlinkshere' => 'What links here',
1237 'notargettitle' => 'No target',
1238 'notargettext' => 'You have not specified a target page or user
1239 to perform this function on.',
1240 'linklistsub' => '(List of links)',
1241 'linkshere' => 'The following pages link to here:',
1242 'nolinkshere' => 'No pages link to here.',
1243 'isredirect' => 'redirect page',
1244
1245 # Block/unblock IP
1246 #
1247 'blockip' => 'Block user',
1248 'blockiptext' => "Use the form below to block write access
1249 from a specific IP address or username.
1250 This should be done only only to prevent vandalism, and in
1251 accordance with [[{{ns:4}}:Policy|policy]].
1252 Fill in a specific reason below (for example, citing particular
1253 pages that were vandalized).",
1254 'ipaddress' => 'IP Address/username',
1255 'ipbexpiry' => 'Expiry',
1256 'ipbreason' => 'Reason',
1257 'ipbsubmit' => 'Block this user',
1258 'badipaddress' => 'Invalid IP address',
1259 'noblockreason' => 'You must supply a reason for the block.',
1260 'blockipsuccesssub' => 'Block succeeded',
1261 'blockipsuccesstext' => "\"$1\" has been blocked.
1262 <br />See [[Special:Ipblocklist|IP block list]] to review blocks.",
1263 'unblockip' => 'Unblock user',
1264 'unblockiptext' => 'Use the form below to restore write access
1265 to a previously blocked IP address or username.',
1266 'ipusubmit' => 'Unblock this address',
1267 'ipusuccess' => "\"$1\" unblocked",
1268 'ipblocklist' => 'List of blocked IP addresses and usernames',
1269 'blocklistline' => "$1, $2 blocked $3 (expires $4)",
1270 'blocklink' => 'block',
1271 'unblocklink' => 'unblock',
1272 'contribslink' => 'contribs',
1273 'autoblocker' => "Autoblocked because you share an IP address with \"$1\". Reason \"$2\".",
1274 'blocklogpage' => 'Block_log',
1275 'blocklogentry' => 'blocked "$1" with an expiry time of $2',
1276 'blocklogtext' => 'This is a log of user blocking and unblocking actions. Automatically
1277 blocked IP addresses are not be listed. See the [[Special:Ipblocklist|IP block list]] for
1278 the list of currently operational bans and blocks.',
1279 'unblocklogentry' => 'unblocked "$1"',
1280 'range_block_disabled' => 'The sysop ability to create range blocks is disabled.',
1281 'ipb_expiry_invalid' => 'Expiry time invalid.',
1282 'ip_range_invalid' => "Invalid IP range.\n",
1283 'proxyblocker' => 'Proxy blocker',
1284 'proxyblockreason' => 'Your IP address has been blocked because it is an open proxy. Please contact your Internet service provider or tech support and inform them of this serious security problem.',
1285 'proxyblocksuccess' => "Done.\n",
1286
1287 # Developer tools
1288 #
1289 'lockdb' => 'Lock database',
1290 'unlockdb' => 'Unlock database',
1291 'lockdbtext' => 'Locking the database will suspend the ability of all
1292 users to edit pages, change their preferences, edit their watchlists, and
1293 other things requiring changes in the database.
1294 Please confirm that this is what you intend to do, and that you will
1295 unlock the database when your maintenance is done.',
1296 'unlockdbtext' => 'Unlocking the database will restore the ability of all
1297 users to edit pages, change their preferences, edit their watchlists, and
1298 other things requiring changes in the database.
1299 Please confirm that this is what you intend to do.',
1300 'lockconfirm' => 'Yes, I really want to lock the database.',
1301 'unlockconfirm' => 'Yes, I really want to unlock the database.',
1302 'lockbtn' => 'Lock database',
1303 'unlockbtn' => 'Unlock database',
1304 'locknoconfirm' => 'You did not check the confirmation box.',
1305 'lockdbsuccesssub' => 'Database lock succeeded',
1306 'unlockdbsuccesssub' => 'Database lock removed',
1307 'lockdbsuccesstext' => 'The database has been locked.
1308 <br />Remember to remove the lock after your maintenance is complete.',
1309 'unlockdbsuccesstext' => 'The database has been unlocked.',
1310
1311 # SQL query
1312 #
1313 'asksql' => 'SQL query',
1314 'asksqltext' => "Use the form below to make a direct query of the
1315 database.
1316 Use single quotes ('like this') to delimit string literals.
1317 This can often add considerable load to the server, so please use
1318 this function sparingly.",
1319 'sqlislogged' => 'Please note that all queries are logged.',
1320 'sqlquery' => 'Enter query',
1321 'querybtn' => 'Submit query',
1322 'selectonly' => 'Only read-only queries are allowed.',
1323 'querysuccessful' => 'Query successful',
1324
1325 # Make sysop
1326 'makesysoptitle' => 'Make a user into a sysop',
1327 'makesysoptext' => 'This form is used by bureaucrats to turn ordinary users into administrators.
1328 Type the name of the user in the box and press the button to make the user an administrator',
1329 'makesysopname' => 'Name of the user:',
1330 'makesysopsubmit' => 'Make this user into a sysop',
1331 'makesysopok' => "<b>User \"$1\" is now a sysop</b>",
1332 'makesysopfail' => "<b>User \"$1\" could not be made into a sysop. (Did you enter the name correctly?)</b>",
1333 'setbureaucratflag' => 'Set bureaucrat flag',
1334 'bureaucratlog' => 'Bureaucrat_log',
1335 'bureaucratlogentry' => "Rights for user \"$1\" set \"$2\"",
1336 'rights' => 'Rights:',
1337 'set_user_rights' => 'Set user rights',
1338 'user_rights_set' => "<b>User rights for \"$1\" updated</b>",
1339 'set_rights_fail' => "<b>User rights for \"$1\" could not be set. (Did you enter the name correctly?)</b>",
1340 'makesysop' => 'Make a user into a sysop',
1341
1342 # Validation
1343 'val_clear_old' => 'Clear my other validation data for $1',
1344 'val_merge_old' => 'Use my previous assessment where selected \'No opinion\'',
1345 'val_form_note' => '<b>Hint:</b> Merging your data means that for the article
1346 revision you select, all options where you have specified <i>no opinion</i>
1347 will be set to the value and comment of the most recent revision for which you
1348 have expressed an opinion. For example, if you want to change a single option
1349 for a newer revision, but also keep your other settings for this article in
1350 this revision, just select which option you intend to <i>change</i>, and
1351 merging will fill in the other options with your previous settings.',
1352 'val_noop' => 'No opinion',
1353 'val_percent' => '<b>$1%</b><br>($2 of $3 points<br>by $4 users)',
1354 'val_percent_single' => '<b>$1%</b><br>($2 of $3 points<br>by one user)',
1355 'val_total' => 'Total',
1356 'val_version' => 'Version',
1357 'val_tab' => 'Validate',
1358 'val_this_is_current_version' => 'this is the latest version',
1359 'val_version_of' => "Version of $1" ,
1360 'val_table_header' => "<tr><th>Class</th>$1<th colspan=4>Opinion</th>$1<th>Comment</th></tr>\n",
1361 'val_stat_link_text' => 'Validation statistics for this article',
1362 'val_view_version' => 'View this version',
1363 'val_validate_version' => 'Validate this version',
1364 'val_user_validations' => 'This user has validated $1 pages.',
1365 'val_no_anon_validation' => 'You have to be logged in to validate an article.',
1366 'val_validate_article_namespace_only' => 'Only articles can be validated. This page is <i>not</i> in the article namespace.',
1367 'val_validated' => 'Validation done.',
1368 'val_article_lists' => 'List of validated articles',
1369 'val_page_validation_statistics' => 'Page validation statistics for $1',
1370
1371 # Move page
1372 #
1373 'movepage' => 'Move page',
1374 'movepagetext' => 'Using the form below will rename a page, moving all
1375 of its history to the new name.
1376 The old title will become a redirect page to the new title.
1377 Links to the old page title will not be changed; be sure to
1378 [[Special:Maintenance|check]] for double or broken redirects.
1379 You are responsible for making sure that links continue to
1380 point where they are supposed to go.
1381
1382 Note that the page will \'\'\'not\'\'\' be moved if there is already
1383 a page at the new title, unless it is empty or a redirect and has no
1384 past edit history. This means that you can rename a page back to where
1385 it was just renamed from if you make a mistake, and you cannot overwrite
1386 an existing page.
1387
1388 <b>WARNING!</b>
1389 This can be a drastic and unexpected change for a popular page;
1390 please be sure you understand the consequences of this before
1391 proceeding.',
1392 'movepagetalktext' => 'The associated talk page, if any, will be automatically moved along with it \'\'\'unless:\'\'\'
1393 *You are moving the page across namespaces,
1394 *A non-empty talk page already exists under the new name, or
1395 *You uncheck the box below.
1396
1397 In those cases, you will have to move or merge the page manually if desired.',
1398 'movearticle' => 'Move page',
1399 'movenologin' => 'Not logged in',
1400 'movenologintext' => "You must be a registered user and <a href=\"{{localurl:Special:Userlogin}}\">logged in</a>
1401 to move a page.",
1402 'newtitle' => 'To new title',
1403 'movepagebtn' => 'Move page',
1404 'pagemovedsub' => 'Move succeeded',
1405 'pagemovedtext' => "Page \"[[$1]]\" moved to \"[[$2]]\".",
1406 'articleexists' => 'A page of that name already exists, or the
1407 name you have chosen is not valid.
1408 Please choose another name.',
1409 'talkexists' => 'The page itself was moved successfully, but the
1410 talk page could not be moved because one already exists at the new
1411 title. Please merge them manually.',
1412 'movedto' => 'moved to',
1413 'movetalk' => 'Move "talk" page as well, if applicable.',
1414 'talkpagemoved' => 'The corresponding talk page was also moved.',
1415 'talkpagenotmoved' => 'The corresponding talk page was <strong>not</strong> moved.',
1416 '1movedto2' => "$1 moved to $2",
1417 '1movedto2_redir' => '$1 moved to $2 over redirect',
1418
1419 # Export
1420
1421 'export' => 'Export pages',
1422 'exporttext' => 'You can export the text and editing history of a particular page or
1423 set of pages wrapped in some XML. In the future, this may then be imported into another
1424 wiki running MediaWiki software, although there is no support for this feature in the
1425 current version.
1426
1427 To export article pages, enter the titles in the text box below, one title per line, and
1428 select whether you want the current version as well as all old versions, with the page
1429 history lines, or just the current version with the info about the last edit.
1430
1431 In the latter case you can also use a link, e.g. [[{{ns:Special}}:Export/Train]] for the
1432 article [[Train]].
1433 ',
1434 'exportcuronly' => 'Include only the current revision, not the full history',
1435
1436 # Namespace 8 related
1437
1438 'allmessages' => 'All system messages',
1439 'allmessagestext' => 'This is a list of all system messages available in the MediaWiki: namespace.',
1440 'allmessagesnotsupportedUI' => 'Your current interface language is not supported by Special:AllMessages at this site.',
1441 'allmessagesnotsupportedDB' => 'Special:AllMessages not supported because wgUseDatabaseMessages is off.',
1442
1443 # Thumbnails
1444
1445 'thumbnail-more' => 'Enlarge',
1446 'missingimage' => "<b>Missing image</b><br /><i>$1</i>\n",
1447
1448 # Special:Import
1449 'import' => 'Import pages',
1450 'importtext' => 'Please export the file from the source wiki using the Special:Export utility, save it to your disk and upload it here.',
1451 'importfailed' => "Import failed: $1",
1452 'importnotext' => 'Empty or no text',
1453 'importsuccess' => 'Import succeeded!',
1454 'importhistoryconflict' => 'Conflicting history revision exists (may have imported this page before)',
1455
1456 # Keyboard access keys for power users
1457 'accesskey-search' => 'f',
1458 'accesskey-minoredit' => 'i',
1459 'accesskey-save' => 's',
1460 'accesskey-preview' => 'p',
1461 'accesskey-compareselectedversions' => 'v',
1462
1463 # tooltip help for some actions, most are in Monobook.js
1464 'tooltip-search' => 'Search this wiki [alt-f]',
1465 'tooltip-minoredit' => 'Mark this as a minor edit [alt-i]',
1466 'tooltip-save' => 'Save your changes [alt-s]',
1467 'tooltip-preview' => 'Preview your changes, please use this before saving! [alt-p]',
1468 'tooltip-compareselectedversions' => 'See the differences between the two selected versions of this page. [alt-v]',
1469
1470 # stylesheets
1471
1472 'Monobook.css' => '/* edit this file to customize the monobook skin for the entire site */',
1473 #'Monobook.js' => '/* edit this file to change js things in the monobook skin */',
1474
1475 # Metadata
1476 'nodublincore' => 'Dublin Core RDF metadata disabled for this server.',
1477 'nocreativecommons' => 'Creative Commons RDF metadata disabled for this server.',
1478 'notacceptable' => 'The wiki server can\'t provide data in a format your client can read.',
1479
1480 # Attribution
1481
1482 'anonymous' => "Anonymous user(s) of $wgSitename",
1483 'siteuser' => "$wgSitename user $1",
1484 'lastmodifiedby' => "This page was last modified $1 by $2.",
1485 'and' => 'and',
1486 'othercontribs' => "Based on work by $1.",
1487 'others' => 'others',
1488 'siteusers' => "$wgSitename user(s) $1",
1489 'creditspage' => 'Page credits',
1490 'nocredits' => 'There is no credits info available for this page.',
1491
1492 # Spam protection
1493
1494 'spamprotectiontitle' => 'Spam protection filter',
1495 'spamprotectiontext' => 'The page you wanted to save was blocked by the spam filter. This is probably caused by a link to an external site.',
1496 'spamprotectionmatch' => 'The following text is what triggered our spam filter: $1',
1497 'subcategorycount' => "There are $1 subcategories to this category.",
1498 'subcategorycount1' => "There is $1 subcategorie to this category.",
1499 'categoryarticlecount' => "There are $1 articles in this category.",
1500 'categoryarticlecount1' => "There is $1 article in this category.",
1501 'usenewcategorypage' => "1\n\nSet first character to \"0\" to disable the new category page layout.",
1502
1503 # Info page
1504 "infosubtitle" => "Information for page",
1505 "numedits" => "Number of edits (article): $1",
1506 "numtalkedits" => "Number of edits (discussion page): $1",
1507 "numwatchers" => "Number of watchers: $1",
1508 "numauthors" => "Number of distinct authors (article): $1",
1509 "numtalkauthors" => "Number of distinct authors (discussion page): $1",
1510
1511 # Math options
1512 'mw_math_png' => 'Always render PNG',
1513 'mw_math_simple' => 'HTML if very simple or else PNG',
1514 'mw_math_html' => 'HTML if possible or else PNG',
1515 'mw_math_source' => 'Leave it as TeX (for text browsers)',
1516 'mw_math_modern' => 'Recommended for modern browsers',
1517 'mw_math_mathml' => 'MathML if possible (experimental)',
1518
1519 # Patrolling
1520 'markaspatrolleddiff' => "Mark as patrolled",
1521 'markaspatrolledlink' => "<div class='patrollink'>[$1]</div>",
1522 'markaspatrolledtext' => "Mark this article as patrolled",
1523 'markedaspatrolled' => "Marked as patrolled",
1524 'markedaspatrolledtext' => "The selected revision has been marked as patrolled.",
1525 'rcpatroldisabled' => "Recent Changes Patrol disabled",
1526 'rcpatroldisabledtext' => "The Recent Changes Patrol feature is currently disabled.",
1527
1528 # Monobook.js: tooltips and access keys for monobook
1529 'Monobook.js' => '/* tooltips and access keys */
1530 ta = new Object();
1531 ta[\'pt-userpage\'] = new Array(\'.\',\'My user page\');
1532 ta[\'pt-anonuserpage\'] = new Array(\'.\',\'The user page for the ip you\\\'re editing as\');
1533 ta[\'pt-mytalk\'] = new Array(\'n\',\'My talk page\');
1534 ta[\'pt-anontalk\'] = new Array(\'n\',\'Discussion about edits from this ip address\');
1535 ta[\'pt-preferences\'] = new Array(\'\',\'My preferences\');
1536 ta[\'pt-watchlist\'] = new Array(\'l\',\'The list of pages you\\\'re monitoring for changes.\');
1537 ta[\'pt-mycontris\'] = new Array(\'y\',\'List of my contributions\');
1538 ta[\'pt-login\'] = new Array(\'o\',\'You are encouraged to log in, it is not mandatory however.\');
1539 ta[\'pt-anonlogin\'] = new Array(\'o\',\'You are encouraged to log in, it is not mandatory however.\');
1540 ta[\'pt-logout\'] = new Array(\'o\',\'Log out\');
1541 ta[\'ca-talk\'] = new Array(\'t\',\'Discussion about the content page\');
1542 ta[\'ca-edit\'] = new Array(\'e\',\'You can edit this page. Please use the preview button before saving.\');
1543 ta[\'ca-addsection\'] = new Array(\'+\',\'Add a comment to this discussion.\');
1544 ta[\'ca-viewsource\'] = new Array(\'e\',\'This page is protected. You can view its source.\');
1545 ta[\'ca-history\'] = new Array(\'h\',\'Past versions of this page.\');
1546 ta[\'ca-protect\'] = new Array(\'=\',\'Protect this page\');
1547 ta[\'ca-delete\'] = new Array(\'d\',\'Delete this page\');
1548 ta[\'ca-undelete\'] = new Array(\'d\',\'Restore the edits done to this page before it was deleted\');
1549 ta[\'ca-move\'] = new Array(\'m\',\'Move this page\');
1550 ta[\'ca-nomove\'] = new Array(\'\',\'You don\\\'t have the permissions to move this page\');
1551 ta[\'ca-watch\'] = new Array(\'w\',\'Add this page to your watchlist\');
1552 ta[\'ca-unwatch\'] = new Array(\'w\',\'Remove this page from your watchlist\');
1553 ta[\'search\'] = new Array(\'f\',\'Search this wiki\');
1554 ta[\'p-logo\'] = new Array(\'\',\'Main Page\');
1555 ta[\'n-mainpage\'] = new Array(\'z\',\'Visit the Main Page\');
1556 ta[\'n-portal\'] = new Array(\'\',\'About the project, what you can do, where to find things\');
1557 ta[\'n-currentevents\'] = new Array(\'\',\'Find background information on current events\');
1558 ta[\'n-recentchanges\'] = new Array(\'r\',\'The list of recent changes in the wiki.\');
1559 ta[\'n-randompage\'] = new Array(\'x\',\'Load a random page\');
1560 ta[\'n-help\'] = new Array(\'\',\'The place to find out.\');
1561 ta[\'n-sitesupport\'] = new Array(\'\',\'Support us\');
1562 ta[\'t-whatlinkshere\'] = new Array(\'j\',\'List of all wiki pages that link here\');
1563 ta[\'t-recentchangeslinked\'] = new Array(\'k\',\'Recent changes in pages linking to this page\');
1564 ta[\'feed-rss\'] = new Array(\'\',\'RSS feed for this page\');
1565 ta[\'feed-atom\'] = new Array(\'\',\'Atom feed for this page\');
1566 ta[\'t-contributions\'] = new Array(\'\',\'View the list of contributions of this user\');
1567 ta[\'t-emailuser\'] = new Array(\'\',\'Send a mail to this user\');
1568 ta[\'t-upload\'] = new Array(\'u\',\'Upload images or media files\');
1569 ta[\'t-specialpages\'] = new Array(\'q\',\'List of all special pages\');
1570 ta[\'ca-nstab-main\'] = new Array(\'c\',\'View the content page\');
1571 ta[\'ca-nstab-user\'] = new Array(\'c\',\'View the user page\');
1572 ta[\'ca-nstab-media\'] = new Array(\'c\',\'View the media page\');
1573 ta[\'ca-nstab-special\'] = new Array(\'\',\'This is a special page, you can\\\'t edit the page itself.\');
1574 ta[\'ca-nstab-wp\'] = new Array(\'a\',\'View the project page\');
1575 ta[\'ca-nstab-image\'] = new Array(\'c\',\'View the image page\');
1576 ta[\'ca-nstab-mediawiki\'] = new Array(\'c\',\'View the system message\');
1577 ta[\'ca-nstab-template\'] = new Array(\'c\',\'View the template\');
1578 ta[\'ca-nstab-help\'] = new Array(\'c\',\'View the help page\');
1579 ta[\'ca-nstab-category\'] = new Array(\'c\',\'View the category page\');
1580 ',
1581
1582 # image deletion
1583 'deletedrevision' => 'Deleted old revision $1.',
1584
1585 # browsing diffs
1586 'previousdiff' => '&larr; Go to previous diff',
1587 'nextdiff' => 'Go to next diff &rarr;',
1588
1589 'imagemaxsize' => 'Limit images on image description pages to: ',
1590 'showbigimage' => 'Download high resolution version ($1x$2, $3 KB)',
1591
1592 'newimages' => 'New images gallery',
1593
1594 'sitesettings' => 'Site Settings',
1595 'sitesettings-features' => 'Features',
1596 'sitesettings-permissions' => 'Permissions',
1597 'sitesettings-memcached' => 'Memcache Daemon',
1598 'sitesettings-debugging' => 'Debugging',
1599 'sitesettings-caching' => 'Page caching',
1600 'sitesettings-wgShowIPinHeader' => 'Show IP in header (for non-logged in users)',
1601 'sitesettings-wgUseDatabaseMessages' => 'Use database messages for user interface labels',
1602 'sitesettings-wgUseCategoryMagic' => 'Enable categories',
1603 'sitesettings-wgUseCategoryBrowser' => 'Enable experimental dmoz-like category browsing. Outputs things like: Encyclopedia > Music > Style of Music > Jazz',
1604 'sitesettings-wgHitcounterUpdateFreq' => 'Hit counter update frequency',
1605 'sitesettings-wgAllowExternalImages' => 'Allow to include external images into articles',
1606 'sitesettings-permissions-readonly' => 'Maintenance mode: Disable write access',
1607 'sitesettings-permissions-whitelist' => 'Whitelist mode',
1608 'sitesettings-permissions-banning' => 'User banning',
1609 'sitesettings-permissions-miser' => 'Performance settings',
1610 'sitesettings-wgReadOnly' => 'Readonly mode',
1611 'sitesettings-wgReadOnlyFile' => 'Readonly message file',
1612 'sitesettings-wgWhitelistEdit' => 'Users must be logged in to edit',
1613 'sitesettings-wgWhitelistRead' => 'Anonymous users may only read these pages:',
1614 'sitesettings-wgWhitelistAccount-user' => 'Users may create accounts themself',
1615 'sitesettings-wgWhitelistAccount-sysop' => 'Sysops may create accounts for users',
1616 'sitesettings-wgWhitelistAccount-developer' => 'Developers may create accounts for users',
1617 'sitesettings-wgSysopUserBans' => 'Sysops may block logged-in users',
1618 'sitesettings-wgSysopRangeBans' => 'Sysops may block IP-ranges',
1619 'sitesettings-wgDefaultBlockExpiry' => 'By default, blocks expire after:',
1620 'sitesettings-wgMiserMode' => 'Enable miser mode, which disables most "expensive" features',
1621 'sitesettings-wgDisableQueryPages' => 'When in miser mode, disable all query pages, not only "expensive" ones',
1622 'sitesettings-wgUseWatchlistCache' => 'Generate a watchlist once every hour or so',
1623 'sitesettings-wgWLCacheTimeout' => 'The hour or so mentioned above (in seconds):',
1624 'sitesettings-cookies' => 'Cookies',
1625 'sitesettings-performance' => 'Performance',
1626 'sitesettings-images' => 'Images',
1627
1628
1629 );
1630
1631 #--------------------------------------------------------------------------
1632 # Internationalisation code
1633 #--------------------------------------------------------------------------
1634
1635 class Language {
1636 function Language(){
1637 # Copies any missing values in the specified arrays from En to the current language
1638 $fillin = array( 'wgSysopSpecialPages', 'wgValidSpecialPages', 'wgDeveloperSpecialPages' );
1639 $name = get_class( $this );
1640 if( strpos( $name, 'language' ) == 0){
1641 $lang = ucfirst( substr( $name, 8 ) );
1642 foreach( $fillin as $arrname ){
1643 $langver = "{$arrname}{$lang}";
1644 $enver = "{$arrname}En";
1645 if( ! isset( $GLOBALS[$langver] ) || ! isset( $GLOBALS[$enver] ))
1646 continue;
1647 foreach($GLOBALS[$enver] as $spage => $text){
1648 if( ! isset( $GLOBALS[$langver][$spage] ) )
1649 $GLOBALS[$langver][$spage] = $text;
1650 }
1651 }
1652 }
1653 }
1654
1655 function getDefaultUserOptions () {
1656 global $wgDefaultUserOptionsEn ;
1657 return $wgDefaultUserOptionsEn ;
1658 }
1659
1660 function getBookstoreList () {
1661 global $wgBookstoreListEn ;
1662 return $wgBookstoreListEn ;
1663 }
1664
1665 function getNamespaces() {
1666 global $wgNamespaceNamesEn;
1667 return $wgNamespaceNamesEn;
1668 }
1669
1670 function getNsText( $index ) {
1671 global $wgNamespaceNamesEn;
1672 return $wgNamespaceNamesEn[$index];
1673 }
1674
1675 function getNsIndex( $text ) {
1676 global $wgNamespaceNamesEn;
1677
1678 foreach ( $wgNamespaceNamesEn as $i => $n ) {
1679 if ( 0 == strcasecmp( $n, $text ) ) { return $i; }
1680 }
1681 return false;
1682 }
1683
1684 function specialPage( $name ) {
1685 return $this->getNsText(NS_SPECIAL) . ':' . $name;
1686 }
1687
1688 function getQuickbarSettings() {
1689 global $wgQuickbarSettingsEn;
1690 return $wgQuickbarSettingsEn;
1691 }
1692
1693 function getSkinNames() {
1694 global $wgSkinNamesEn;
1695 return $wgSkinNamesEn;
1696 }
1697
1698 function getMathNames() {
1699 global $wgMathNamesEn;
1700 return $wgMathNamesEn;
1701 }
1702
1703 function getDateFormats() {
1704 global $wgDateFormatsEn;
1705 return $wgDateFormatsEn;
1706 }
1707
1708 function getValidationTypes() {
1709 global $wgValidationTypesEn;
1710 return $wgValidationTypesEn;
1711 }
1712
1713 function getUserToggles() {
1714 global $wgUserTogglesEn;
1715 return $wgUserTogglesEn;
1716 }
1717
1718 function getUserToggle( $tog ) {
1719 $togs =& $this->getUserToggles();
1720 return wfMsg("tog-".$tog);
1721 }
1722
1723 function getLanguageNames() {
1724 global $wgLanguageNamesEn;
1725 return $wgLanguageNamesEn;
1726 }
1727
1728 function getLanguageName( $code ) {
1729 global $wgLanguageNamesEn;
1730 if ( ! array_key_exists( $code, $wgLanguageNamesEn ) ) {
1731 return "";
1732 }
1733 return $wgLanguageNamesEn[$code];
1734 }
1735
1736 function getMonthName( $key )
1737 {
1738 global $wgMonthNamesEn;
1739 return wfMsg($wgMonthNamesEn[$key-1]);
1740 }
1741
1742 /* by default we just return base form */
1743 function getMonthNameGen( $key )
1744 {
1745 return $this->getMonthName( $key );
1746 }
1747
1748 function getMonthAbbreviation( $key )
1749 {
1750 global $wgMonthAbbreviationsEn;
1751 return wfMsg(@$wgMonthAbbreviationsEn[$key-1]);
1752 }
1753
1754 function getWeekdayName( $key )
1755 {
1756 global $wgWeekdayNamesEn;
1757 return wfMsg($wgWeekdayNamesEn[$key-1]);
1758 }
1759
1760 function userAdjust( $ts )
1761 {
1762 global $wgUser, $wgLocalTZoffset;
1763
1764 $tz = $wgUser->getOption( 'timecorrection' );
1765 if ( $tz === '' ) {
1766 $hrDiff = isset( $wgLocalTZoffset ) ? $wgLocalTZoffset : 0;
1767 $minDiff = 0;
1768 } elseif ( strpos( $tz, ':' ) !== false ) {
1769 $tzArray = explode( ':', $tz );
1770 $hrDiff = intval($tzArray[0]);
1771 $minDiff = intval($hrDiff < 0 ? -$tzArray[1] : $tzArray[1]);
1772 } else {
1773 $hrDiff = intval( $tz );
1774 }
1775 if ( 0 == $hrDiff && 0 == $minDiff ) { return $ts; }
1776
1777 $t = mktime( (
1778 (int)substr( $ts, 8, 2) ) + $hrDiff, # Hours
1779 (int)substr( $ts, 10, 2 ) + $minDiff, # Minutes
1780 (int)substr( $ts, 12, 2 ), # Seconds
1781 (int)substr( $ts, 4, 2 ), # Month
1782 (int)substr( $ts, 6, 2 ), # Day
1783 (int)substr( $ts, 0, 4 ) ); #Year
1784 return date( 'YmdHis', $t );
1785 }
1786
1787 function date( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
1788 {
1789 global $wgAmericanDates, $wgUser, $wgUseDynamicDates;
1790
1791 $ts=wfTimestamp(TS_MW,$ts);
1792 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1793 if ( $wgUseDynamicDates ) {
1794 if ( $format == MW_DATE_USER_FORMAT ) {
1795 $datePreference = $wgUser->getOption( 'date' );
1796 } else {
1797 $options = $this->getDefaultUserOptions();
1798 $datePreference = $options['date'];
1799 }
1800 if ( $datePreference == 0 ) {
1801 $datePreference = $wgAmericanDates ? 1 : 2;
1802 }
1803 } else {
1804 $datePreference = $wgAmericanDates ? 1 : 2;
1805 }
1806
1807 $month = $this->getMonthAbbreviation( substr( $ts, 4, 2 ) );
1808 $day = $this->formatNum( 0 + substr( $ts, 6, 2 ) );
1809 $year = $this->formatNum( substr( $ts, 0, 4 ) );
1810
1811 switch( $datePreference ) {
1812 case 1: return "$month $day, $year";
1813 case 2: return "$day $month $year";
1814 default: return "$year $month $day";
1815 }
1816 }
1817
1818 function time( $ts, $adj = false, $seconds = false )
1819 {
1820 $ts=wfTimestamp(TS_MW,$ts);
1821
1822 if ( $adj ) { $ts = $this->userAdjust( $ts ); }
1823
1824 $t = substr( $ts, 8, 2 ) . ':' . substr( $ts, 10, 2 );
1825 if ( $seconds ) {
1826 $t .= ':' . substr( $ts, 12, 2 );
1827 }
1828 return $this->formatNum( $t );
1829 }
1830
1831 function timeanddate( $ts, $adj = false, $format = MW_DATE_USER_FORMAT )
1832 {
1833 $ts=wfTimestamp(TS_MW,$ts);
1834
1835 return $this->time( $ts, $adj ) . ', ' . $this->date( $ts, $adj, $format );
1836 }
1837
1838 function rfc1123( $ts )
1839 {
1840 return date( 'D, d M Y H:i:s T', $ts );
1841 }
1842
1843 function getValidSpecialPages()
1844 {
1845 global $wgValidSpecialPagesEn;
1846 return $wgValidSpecialPagesEn;
1847 }
1848
1849 function getSysopSpecialPages()
1850 {
1851 global $wgSysopSpecialPagesEn;
1852 return $wgSysopSpecialPagesEn;
1853 }
1854
1855 function getDeveloperSpecialPages()
1856 {
1857 global $wgDeveloperSpecialPagesEn;
1858 return $wgDeveloperSpecialPagesEn;
1859 }
1860
1861 function getMessage( $key )
1862 {
1863 global $wgAllMessagesEn;
1864 return @$wgAllMessagesEn[$key];
1865 }
1866
1867 function getAllMessages()
1868 {
1869 global $wgAllMessagesEn;
1870 return $wgAllMessagesEn;
1871 }
1872
1873 function iconv( $in, $out, $string ) {
1874 # For most languages, this is a wrapper for iconv
1875 return iconv( $in, $out, $string );
1876 }
1877
1878 function ucfirst( $string ) {
1879 # For most languages, this is a wrapper for ucfirst()
1880 return ucfirst( $string );
1881 }
1882
1883 function lcfirst( $s ) {
1884 return strtolower( $s{0} ). substr( $s, 1 );
1885 }
1886
1887 function checkTitleEncoding( $s ) {
1888 global $wgInputEncoding;
1889
1890 # Check for UTF-8 URLs; Internet Explorer produces these if you
1891 # type non-ASCII chars in the URL bar or follow unescaped links.
1892 $ishigh = preg_match( '/[\x80-\xff]/', $s);
1893 $isutf = ($ishigh ? preg_match( '/^([\x00-\x7f]|[\xc0-\xdf][\x80-\xbf]|' .
1894 '[\xe0-\xef][\x80-\xbf]{2}|[\xf0-\xf7][\x80-\xbf]{3})+$/', $s ) : true );
1895
1896 if( ($wgInputEncoding != 'utf-8') and $ishigh and $isutf )
1897 return @iconv( 'UTF-8', $wgInputEncoding, $s );
1898
1899 if( ($wgInputEncoding == 'utf-8') and $ishigh and !$isutf )
1900 return utf8_encode( $s );
1901
1902 # Other languages can safely leave this function, or replace
1903 # it with one to detect and convert another legacy encoding.
1904 return $s;
1905 }
1906
1907 function stripForSearch( $in ) {
1908 # Some languages have special punctuation to strip out
1909 # or characters which need to be converted for MySQL's
1910 # indexing to grok it correctly. Make such changes here.
1911 return strtolower( $in );
1912 }
1913
1914 function firstChar( $s ) {
1915 # Get the first character of a string. In ASCII, return
1916 # first byte of the string. UTF8 and others have to
1917 # overload this.
1918 return $s[0];
1919 }
1920
1921 function setAltEncoding() {
1922 # Some languages may have an alternate char encoding option
1923 # (Esperanto X-coding, Japanese furigana conversion, etc)
1924 # If 'altencoding' is checked in user prefs, this gives a
1925 # chance to swap out the default encoding settings.
1926 #global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1927 }
1928
1929 function recodeForEdit( $s ) {
1930 # For some languages we'll want to explicitly specify
1931 # which characters make it into the edit box raw
1932 # or are converted in some way or another.
1933 # Note that if wgOutputEncoding is different from
1934 # wgInputEncoding, this text will be further converted
1935 # to wgOutputEncoding.
1936 global $wgInputEncoding, $wgEditEncoding;
1937 if( $wgEditEncoding == '' or
1938 $wgEditEncoding == $wgInputEncoding ) {
1939 return $s;
1940 } else {
1941 return $this->iconv( $wgInputEncoding, $wgEditEncoding, $s );
1942 }
1943 }
1944
1945 function recodeInput( $s ) {
1946 # Take the previous into account.
1947 global $wgInputEncoding, $wgOutputEncoding, $wgEditEncoding;
1948 if($wgEditEncoding != "") {
1949 $enc = $wgEditEncoding;
1950 } else {
1951 $enc = $wgOutputEncoding;
1952 }
1953 if( $enc == $wgInputEncoding ) {
1954 return $s;
1955 } else {
1956 return $this->iconv( $enc, $wgInputEncoding, $s );
1957 }
1958 }
1959
1960 # For right-to-left language support
1961 function isRTL() { return false; }
1962
1963 # To allow "foo[[bar]]" to extend the link over the whole word "foobar"
1964 function linkPrefixExtension() { return false; }
1965
1966
1967 function &getMagicWords()
1968 {
1969 global $wgMagicWordsEn;
1970 return $wgMagicWordsEn;
1971 }
1972
1973 # Fill a MagicWord object with data from here
1974 function getMagic( &$mw )
1975 {
1976 $raw =& $this->getMagicWords();
1977 if( !isset( $raw[$mw->mId] ) ) {
1978 # Fall back to English if local list is incomplete
1979 $raw =& Language::getMagicWords();
1980 }
1981 $rawEntry = $raw[$mw->mId];
1982 $mw->mCaseSensitive = $rawEntry[0];
1983 $mw->mSynonyms = array_slice( $rawEntry, 1 );
1984 }
1985
1986 # Italic is unsuitable for some languages
1987 function emphasize( $text )
1988 {
1989 return '<em>'.$text.'</em>';
1990 }
1991
1992
1993 # Normally we use the plain ASCII digits. Some languages such as Arabic will
1994 # want to output numbers using script-appropriate characters: override this
1995 # function with a translator. See LanguageAr.php for an example.
1996 function formatNum( $number ) {
1997 return $number;
1998 }
1999
2000 function listToText( $l ) {
2001 $s = '';
2002 $m = count($l) - 1;
2003 for ($i = $m; $i >= 0; $i--) {
2004 if ($i == $m) {
2005 $s = $l[$i];
2006 } else if ($i == $m - 1) {
2007 $s = $l[$i] . ' ' . $this->getMessage('and') . ' ' . $s;
2008 } else {
2009 $s = $l[$i] . ', ' . $s;
2010 }
2011 }
2012 return $s;
2013 }
2014
2015 # Crop a string from the beginning or end to a certain number of bytes.
2016 # (Bytes are used because our storage has limited byte lengths for some
2017 # columns in the database.) Multibyte charsets will need to make sure that
2018 # only whole characters are included!
2019 #
2020 # $length does not include the optional ellipsis.
2021 # If $length is negative, snip from the beginning
2022 function truncate( $string, $length, $ellipsis = '' ) {
2023 if( $length == 0 ) {
2024 return $ellipsis;
2025 }
2026 if ( strlen( $string ) <= abs( $length ) ) {
2027 return $string;
2028 }
2029 if( $length > 0 ) {
2030 $string = substr( $string, 0, $length );
2031 return $string . $ellipsis;
2032 } else {
2033 $string = substr( $string, $length );
2034 return $ellipsis . $string;
2035 }
2036 }
2037
2038 # Grammatical transformations, needed for inflected languages
2039 # Invoked by putting {{grammar:case|word}} in a message
2040 function convertGrammar( $word, $case ) {
2041 return $word;
2042 }
2043
2044
2045 # convert text to different variants of a language. the automatic
2046 # conversion is done in autoConvert(). here we parse the text
2047 # marked with -{}-, which specifies special conversions of the
2048 # text that can not be accomplished in autoConvert()
2049 #
2050 # syntax of the markup:
2051 # -{code1:text1;code2:text2;...}- or
2052 # -{text}- in which case no conversion should take place for text
2053 function convert( $text ) {
2054
2055 if(sizeof($this->getVariants())<2)
2056 return $text;
2057
2058 // no conversion if redirecting
2059 if(substr($text,0,9) == "#REDIRECT") {
2060 return $text;
2061 }
2062
2063
2064 $plang = $this->getPreferredVariant();
2065 $fallback = $this->getVariantFallback($plang);
2066
2067 $tarray = explode("-{", $text);
2068 $tfirst = array_shift($tarray);
2069 $text = $this->autoConvert($tfirst);
2070
2071 foreach($tarray as $txt) {
2072 $marked = explode("}-", $txt);
2073
2074 $choice = explode(";", $marked{0});
2075 if(!array_key_exists(1, $choice)) {
2076 /* a single choice */
2077 $text .= $choice{0};
2078 }
2079 else {
2080 $choice1=false;
2081 $choice2=false;
2082 foreach($choice as $c) {
2083 $v = explode(":", $c);
2084 if(!array_key_exists(1, $v)) {
2085 //syntax error in the markup, give up
2086 break;
2087 }
2088 $code = trim($v{0});
2089 $content = trim($v{1});
2090 if($code == $plang) {
2091 $choice1 = $content;
2092 break;
2093 }
2094 if($code == $fallback)
2095 $choice2 = $content;
2096 }
2097 if ( $choice1 )
2098 $text .= $choice1;
2099 elseif ( $choice2 )
2100 $text .= $choice2;
2101 else
2102 $text .= $marked{0};
2103 }
2104 if(array_key_exists(1, $marked))
2105 $text .= $this->autoConvert($marked{1});
2106 }
2107
2108 return $text;
2109 }
2110
2111 /* this does the real conversion to the preferred variant.
2112 see LanguageZh.php for example
2113 */
2114 function autoConvert($text, $toVariant=false) {
2115 return $text;
2116 }
2117
2118 # returns a list of language variants for conversion.
2119 # right now mainly used in the Chinese conversion
2120 function getVariants() {
2121 $lang = strtolower(substr(get_class($this), 8));
2122 return array($lang);
2123 }
2124
2125 # in case some variant is not defined in the markup, we need
2126 # to have some fallback. for example, in zh, normally people
2127 # will define zh-cn and zh-tw, but less so for zh-sg or zh-hk.
2128 # when zh-sg is preferred but not defined, we will pick zh-cn
2129 # in this case. right now this is only used by zh.
2130 function getVariantFallback($v) {
2131 return false;
2132 }
2133
2134 function getPreferredVariant() {
2135 global $wgUser;
2136
2137 // if user logged in, get in from user's preference
2138 if($wgUser->getID()!=0)
2139 return $wgUser->getOption('variant');
2140
2141 // if we have multiple variants for this langauge,
2142 // pick the first one as default
2143 $v=$this->getVariants() ;
2144 if(!empty($v))
2145 return $v{0};
2146
2147 // otherwise there should really be just one variant,
2148 // get it from the class name
2149 $lang = strtolower(substr(get_class($this), 8));
2150 return $lang;
2151 }
2152 }
2153
2154 # This should fail gracefully if there's not a localization available
2155 @include_once( 'Language' . str_replace( '-', '_', ucfirst( $wgLanguageCode ) ) . '.php' );
2156
2157 }
2158 ?>